Fix mistake #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test building and runnint dojo | |
on: push | |
jobs: | |
smoketest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Container | |
run: "docker build -t pwncollege/dojo ." | |
- name: Run Container | |
run: "docker run --privileged -d -v /opt/dojo:/opt/pwn.college:shared -p 22:22 -p 80:80 -p 443:443 --name dojo pwncollege/dojo && sleep 5" | |
- name: Wait for container to be ready | |
run: | | |
until docker exec dojo is-setup-finished | |
do | |
sleep 1 | |
done | |
- name: Run tests against container | |
run: "pytest ./test" | |