Skip to content

Commit

Permalink
ci(github): set .php-version to 8 and update workflow test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Aug 13, 2023
1 parent cdbd922 commit 4035647
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on: [push, pull_request]

jobs:
test:
strategy:
matrix:
php-version: [7, 8]
runs-on: ubuntu-latest

steps:
Expand All @@ -12,17 +15,15 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: pcov

- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Run tests
run: |
composer dumpautoload
vendor/bin/pest --coverage --coverage-clover=coverage.xml
run: vendor/bin/pest --coverage --coverage-clover=coverage.xml

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .php-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4
8

0 comments on commit 4035647

Please sign in to comment.