Skip to content

Commit

Permalink
ci: update workflow for testing on PHP 8.1 and 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Dec 19, 2022
1 parent 6456d90 commit 963d137
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -22,7 +22,7 @@ jobs:
coverage: "none"

- name: "Install dependencies (Composer)"
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"

- name: "Check syntax (php-parallel-lint)"
run: "./vendor/bin/parallel-lint src tests --colors"
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"

- name: "Install dependencies (apt)"
run: |
Expand All @@ -52,13 +52,13 @@ jobs:
ini-values: "memory_limit=-1"

- name: "Install dependencies (Composer)"
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"

- name: "Run unit tests (PHPUnit)"
run: "./vendor/bin/phpunit --verbose --colors=always --coverage-text --coverage-clover build/logs/clover.xml"

- name: "Publish coverage report to Codecov"
uses: "codecov/codecov-action@v1"
uses: "codecov/codecov-action@v3"

unit-tests:
name: "Unit Tests"
Expand All @@ -77,6 +77,8 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
operating-system:
- "ubuntu-latest"
- "windows-latest"
Expand All @@ -103,9 +105,9 @@ jobs:
- php-version: "8.0"
extensions: ", sodium, uuid"
- php-version: "8.1"
operating-system: "ubuntu-latest"
extensions: ", sodium, uuid"
composer-options: "--ignore-platform-req=php"
- php-version: "8.2"
extensions: ", sodium, uuid"

steps:
- name: "Configure Git (for Windows)"
Expand All @@ -115,7 +117,7 @@ jobs:
git config --system core.eol lf
- name: "Checkout repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"

- name: "Install dependencies (apt)"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
Expand All @@ -133,7 +135,7 @@ jobs:
ini-values: "memory_limit=-1"

- name: "Install dependencies (Composer)"
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"
with:
composer-options: "${{ matrix.composer-options }}"

Expand Down

0 comments on commit 963d137

Please sign in to comment.