Skip to content

Commit

Permalink
Add PHP 8.1 and 8.2 to the CI (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
renanbr committed Nov 27, 2022
1 parent 114c854 commit ae82b39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,8 @@ jobs:
php-version: 7.4
tools: phpstan, cs2pr

- name: Get Composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
uses: ramsey/composer-install@v2

- name: Cache PHPStan
uses: actions/cache@v2
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
include:
- php-version: '7.4'
- php-version: '8.0'
coverage: true

steps:
Expand All @@ -36,22 +36,11 @@ jobs:
- name: Install Pandoc
run: sudo apt install pandoc

- name: Determine Composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Load Composer cache
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
uses: ramsey/composer-install@v2

- name: Run PHPUnit
run: vendor/bin/phpunit --testdox ${{ !matrix.coverage && '--no-coverage' || '' }}
run: vendor/bin/phpunit --testdox ${{ matrix.coverage && '--coverage-clover ./coverage.xml' || '--no-coverage' }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit ae82b39

Please sign in to comment.