Skip to content

Commit

Permalink
run tests in series to avoid building the image three times
Browse files Browse the repository at this point in the history
 -- I had hoped that running these in parallel would save time, but it didn't work out that way.
  • Loading branch information
briskt committed Feb 22, 2024
1 parent 93ebf08 commit 6bf049e
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Run unit tests
run: |
docker-compose -f actions-services.yml run --rm app ./run-tests.sh
api-tests:
name: API Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
run: docker-compose -f actions-services.yml run --rm app ./run-tests.sh
- name: Run API tests
run: |
docker-compose -f actions-services.yml run --rm app ./run-tests-api.sh
psr2-check:
name: PSR2 check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
run: docker-compose -f actions-services.yml run --rm app ./run-tests-api.sh
- name: Check PSR2
run: |
docker-compose -f actions-services.yml run --rm app ./check-psr2.sh
run: docker-compose -f actions-services.yml run --rm app ./check-psr2.sh

build-and-publish:
name: Build and Publish
Expand Down

0 comments on commit 6bf049e

Please sign in to comment.