You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,19 +108,35 @@ jobs:
108
108
run: |
109
109
pip install -e .
110
110
111
+
- name: ctf init
112
+
run: |
113
+
ctf init test-ctf
114
+
115
+
- name: Copy CTF files
116
+
run: |
117
+
mkdir -p test-ctf/challenges
118
+
cp -r ./challenges test-ctf/
119
+
ls -al test-ctf/
120
+
ls -al test-ctf/challenges
121
+
111
122
- name: Validate CTF structure
123
+
# Run this in the test-ctf directory
124
+
working-directory: test-ctf
112
125
run: |
113
126
ctf validate
114
127
115
128
- name: Deployment check
129
+
working-directory: test-ctf
116
130
run: |
117
131
ctf check
118
132
119
133
- name: File generation
134
+
working-directory: test-ctf
120
135
run: |
121
136
ctf generate
122
137
123
138
- name: Test deployment looping through tracks
139
+
working-directory: test-ctf
124
140
run: |
125
141
IFS=" " read -r -a tracks <<< "$(python3 -c 'from ctf.utils import get_all_available_tracks,validate_track_can_be_deployed;print(str([t for t in get_all_available_tracks() if validate_track_can_be_deployed(t)]).strip("[]\x27").replace("\x27, \x27"," "))')"
0 commit comments