Skip to content

Commit

Permalink
ci: introduce env php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Nov 30, 2023
1 parent 32e2769 commit 8e584c9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: CI

env:
PHP_VERSIONS: 8.1, 8.2

on: [push]

jobs:
composer:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: ${{ fromJson(env.PHP_VERSIONS) }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -37,7 +40,7 @@ jobs:
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: ${{ fromJson(env.PHP_VERSIONS) }}

outputs:
coverage: ${{ steps.store-coverage.outputs.coverage_text }}
Expand Down Expand Up @@ -90,7 +93,7 @@ jobs:
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: ${{ fromJson(env.PHP_VERSIONS) }}

steps:
- uses: actions/download-artifact@v3
Expand All @@ -112,7 +115,7 @@ jobs:
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: ${{ fromJson(env.PHP_VERSIONS) }}

steps:
- uses: actions/download-artifact@v3
Expand All @@ -136,7 +139,7 @@ jobs:
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: ${{ fromJson(env.PHP_VERSIONS) }}

steps:
- uses: actions/download-artifact@v3
Expand Down

0 comments on commit 8e584c9

Please sign in to comment.