Skip to content

Commit

Permalink
Tests for PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux authored Nov 2, 2023
1 parent 6c272da commit adaa0f1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ on: [pull_request]

jobs:
lint:
name: Run Linter
name: Run Linter on PHP ${{ matrix.php }}
runs-on: ubuntu-latest

strategy:
matrix:
php: ['8.0', '8.1', '8.2']

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: ${{ matrix.php }}

- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -26,14 +30,18 @@ jobs:
- run: composer lint

tests:
name: Run Unit Tests
name: Run Unit Tests on PHP ${{ matrix.php }}
runs-on: ubuntu-latest

strategy:
matrix:
php: ['8.0', '8.1', '8.2']

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: ${{ matrix.php }}

- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -45,4 +53,4 @@ jobs:
- name: Install dependencies
run: composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist

- run: composer test
- run: composer test

0 comments on commit adaa0f1

Please sign in to comment.