Skip to content

Commit

Permalink
Update actions in GitHub Actions workflow and add new PHP and Symfony…
Browse files Browse the repository at this point in the history
… versions
  • Loading branch information
niels-nijens committed Oct 26, 2023
1 parent 2c1379e commit b828123
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:

strategy:
matrix:
php-version: ['7.4', '8.0', '8.1']
symfony-version: ['4.4', '5.0', '5.1', '5.2', '5.3', '5.4', '6.0', '6.1']
php-version: ['7.4', '8.0', '8.1', '8.2']
symfony-version: ['4.4', '5.0', '5.1', '5.2', '5.3', '5.4', '6.0', '6.1', '6.2', '6.3']
test-options: ['']
coverage: [false]
include:
Expand All @@ -25,6 +25,10 @@ jobs:
symfony-version: '6.0'
- php-version: '7.4'
symfony-version: '6.1'
- php-version: '7.4'
symfony-version: '6.2'
- php-version: '7.4'
symfony-version: '6.3'
- php-version: '8.0'
symfony-version: '5.0'
- php-version: '8.0'
Expand All @@ -35,9 +39,15 @@ jobs:
symfony-version: '5.1'
- php-version: '8.1'
symfony-version: '5.2'
- php-version: '8.2'
symfony-version: '5.0'
- php-version: '8.2'
symfony-version: '5.1'
- php-version: '8.2'
symfony-version: '5.2'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -51,7 +61,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -64,7 +74,7 @@ jobs:
run: make test${{ matrix.test-options }}

- name: Code Coverage Summary
uses: irongut/CodeCoverageSummary@v1.2.0
uses: irongut/CodeCoverageSummary@v1.3.0
if: ${{ matrix.coverage == true }}
with:
filename: coverage.cobertura.xml
Expand All @@ -80,7 +90,7 @@ jobs:
run: |
echo ${{ github.event.number }} > pull-request-number
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ matrix.coverage == true }}
with:
name: coverage
Expand All @@ -94,12 +104,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Validate composer.json and composer.lock
Expand All @@ -110,20 +120,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Detect dependency cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down

0 comments on commit b828123

Please sign in to comment.