Skip to content

Commit

Permalink
Explicit Docker build step before other jobs including caching
Browse files Browse the repository at this point in the history
  • Loading branch information
coenjacobs committed Sep 8, 2024
1 parent 9765981 commit e959f9a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,35 @@ on:
- master

jobs:
docker_build:
runs-on: ubuntu-latest
steps:
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}"
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
linting:
needs: docker_build
runs-on: ubuntu-latest
name: Linting
steps:
- uses: actions/checkout@v4
- name: Run linting
run: docker compose run --rm actions-tester composer test:lint
testing:
needs: docker_build
runs-on: ubuntu-latest
name: Testing
steps:
- uses: actions/checkout@v4
- name: Run testing
run: docker compose run --rm actions-tester composer test:phpunit
analysis:
needs: docker_build
runs-on: ubuntu-latest
name: Analysis
steps:
Expand Down

0 comments on commit e959f9a

Please sign in to comment.