Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Dec 14, 2024
1 parent 5c9dd27 commit 1dd4a2c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/code-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ concurrency:
cancel-in-progress: true

jobs:
restore_docker_cache:
uses: ./.github/workflows/restore-docker-cache.yml@main
with:
php-version: "8.3"

code_tests:
name: Code tests
runs-on: ubuntu-20.04
needs: restore_docker_cache
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Reuse Docker restore & build
uses: ./.github/workflows/restore-docker-cache.yml@main
with:
php-version: 8.3

- uses: actions/cache@v3
id: cache-composer
with:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/phan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ concurrency:
cancel-in-progress: true

jobs:
restore_docker_cache:
uses: ./.github/workflows/restore-docker-cache.yml@main
with:
php-version: ${{ matrix.php }}

phan_tests:
runs-on: ubuntu-latest
needs: restore_docker_cache
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
Expand All @@ -20,11 +26,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Reuse Docker restore & build
uses: ./.github/workflows/restore-docker-cache.yml@main
with:
php-version: ${{ matrix.php }}

- name: Cache composer dependencies
uses: actions/cache@v3
id: cache-composer
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ concurrency:
cancel-in-progress: true

jobs:
restore_docker_cache:
uses: ./.github/workflows/restore-docker-cache.yml@main
with:
php-version: ${{ matrix.php }}

phpunit_tests:
name: PHPUnit on PHP ${{ matrix.php }}
runs-on: ubuntu-latest
needs: restore_docker_cache
strategy:
matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
Expand All @@ -21,11 +26,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Reuse Docker restore & build
uses: ./.github/workflows/restore-docker-cache.yml@main
with:
php-version: ${{ matrix.php }}

- name: Cache composer dependencies
uses: actions/cache@v3
id: cache-composer
Expand Down

0 comments on commit 1dd4a2c

Please sign in to comment.