Skip to content

Commit 431657a

Browse files
committed
make basic ctf commands run before the whole setup
1 parent 959184e commit 431657a

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,43 @@ jobs:
3232
echo "Pulled files:"
3333
{ git lfs ls-files | grep -E '[a-f0-9]{10}\s\*'; } || true
3434
35+
- name: Install python dependencies
36+
run: |
37+
pip install -e .
38+
39+
- name: ctf init
40+
run: |
41+
ctf init test-ctf
42+
43+
- name: ctf version
44+
run: |
45+
ctf version
46+
47+
- name: Copy CTF files
48+
run: |
49+
mkdir -p test-ctf/challenges
50+
cp -r ./challenges test-ctf/
51+
ls -al test-ctf/
52+
ls -al test-ctf/challenges
53+
54+
- name: Validate CTF structure
55+
# Run this in the test-ctf directory
56+
working-directory: test-ctf
57+
run: |
58+
ctf validate
59+
60+
- name: CTF stats
61+
# Run this in the test-ctf directory
62+
working-directory: test-ctf
63+
run: |
64+
ctf stats
65+
66+
- name: CTF list
67+
# Run this in the test-ctf directory
68+
working-directory: test-ctf
69+
run: |
70+
ctf list
71+
3572
- name: Remove docker
3673
run: |
3774
sudo apt-get autopurge -y moby-containerd docker uidmap
@@ -104,43 +141,6 @@ jobs:
104141
./install-opentofu.sh --install-method deb
105142
rm -f install-opentofu.sh
106143
107-
- name: Install python dependencies
108-
run: |
109-
pip install -e .
110-
111-
- name: ctf init
112-
run: |
113-
ctf init test-ctf
114-
115-
- name: ctf version
116-
run: |
117-
ctf version
118-
119-
- name: Copy CTF files
120-
run: |
121-
mkdir -p test-ctf/challenges
122-
cp -r ./challenges test-ctf/
123-
ls -al test-ctf/
124-
ls -al test-ctf/challenges
125-
126-
- name: Validate CTF structure
127-
# Run this in the test-ctf directory
128-
working-directory: test-ctf
129-
run: |
130-
ctf validate
131-
132-
- name: CTF stats
133-
# Run this in the test-ctf directory
134-
working-directory: test-ctf
135-
run: |
136-
ctf stats
137-
138-
- name: CTF list
139-
# Run this in the test-ctf directory
140-
working-directory: test-ctf
141-
run: |
142-
ctf list
143-
144144
- name: Deployment check
145145
working-directory: test-ctf
146146
run: |

0 commit comments

Comments
 (0)