diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-12-03 22:27:49 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-12-03 22:27:49 +0100 |
commit | c226941cc06055766f7eb5649e25cd1f74fab688 (patch) | |
tree | c443fde9ada3dadc3031d97aebb1bd13170df620 | |
parent | fix preludes in bash scripts (diff) | |
download | cgitize-c226941cc06055766f7eb5649e25cd1f74fab688.tar.gz cgitize-c226941cc06055766f7eb5649e25cd1f74fab688.zip |
workflows/ci: rearrange dependencies
Make the "example config" job depend on all the other test jobs; that
way, it's faster to know when there's a failure in e.g. in the docker
tests job.
-rw-r--r-- | .github/workflows/ci.yml | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc56e5c..924dc18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,17 @@ jobs: - name: Unit tests run: python -m unittest --buffer + test_docker: + runs-on: ubuntu-latest + name: 'Test / Docker' + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Integration test (Docker) + run: sudo ./test/integration/docker/test.sh + test_example_config: + needs: [test_local, test_docker] runs-on: ubuntu-latest name: 'Test / example config' env: @@ -63,15 +73,6 @@ jobs: - name: Integration test (example config) run: ./test/integration/example/test.sh - test_docker: - runs-on: ubuntu-latest - name: 'Test / Docker' - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Integration test (Docker) - run: sudo ./test/integration/docker/test.sh - publish_docker: needs: [test_local, test_example_config, test_docker] runs-on: ubuntu-latest |