|
32 | 32 | echo "Pulled files:" |
33 | 33 | { git lfs ls-files | grep -E '[a-f0-9]{10}\s\*'; } || true |
34 | 34 |
|
| 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 | +
|
35 | 72 | - name: Remove docker |
36 | 73 | run: | |
37 | 74 | sudo apt-get autopurge -y moby-containerd docker uidmap |
@@ -104,43 +141,6 @@ jobs: |
104 | 141 | ./install-opentofu.sh --install-method deb |
105 | 142 | rm -f install-opentofu.sh |
106 | 143 |
|
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 | | -
|
144 | 144 | - name: Deployment check |
145 | 145 | working-directory: test-ctf |
146 | 146 | run: | |
|
0 commit comments