Skip to content

Commit

Permalink
ci: add PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bpolaszek committed Mar 13, 2024
1 parent 18371f0 commit f661c66
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ jobs:
code-style:
name: Code Style & Static Analysis
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- 8.1
- 8.2
- 8.3
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: ${{ matrix.php }}
extensions: mbstring, pcntl

- name: Validate composer.json and composer.lock
Expand All @@ -35,6 +41,12 @@ jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- 8.1
- 8.2
- 8.3
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -50,8 +62,6 @@ jobs:
run: composer install --prefer-dist --no-progress

- name: Run tests
env:
TRANSPORT_DSN: ${{ matrix.transport }}
run: vendor/bin/pest --testsuite='Unit tests' --coverage --coverage-clover=coverage.xml

- name: Upload coverage to Codecov
Expand All @@ -75,14 +85,18 @@ jobs:
- "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0"
- "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0.1"
- "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0.1&readTimeout=2"
php:
- 8.1
- 8.2
- 8.3
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: ${{ matrix.php }}
extensions: mbstring, pcntl, curl, zip
coverage: pcov

Expand Down

0 comments on commit f661c66

Please sign in to comment.