Skip to content

Commit

Permalink
ci: add PHP 8.1 (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpoulain authored Sep 6, 2022
1 parent 9dcb97e commit ab36e6d
Show file tree
Hide file tree
Showing 9 changed files with 312 additions and 275 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
php:
- '7.4'
- '8.0'
- '8.1'
include:
- php: '8.0'
- php: '8.1'
coverage: true
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -48,11 +49,11 @@ jobs:
sudo chown -R $(whoami):$(whoami) .
- name: Install dependencies
if: startsWith(matrix.php, '8.0')
if: startsWith(matrix.php, '8.1')
run: composer install --prefer-dist --no-interaction --no-progress --ansi

- name: Update dependencies
if: "!startsWith(matrix.php, '8.0')"
if: "!startsWith(matrix.php, '8.1')"
run: composer update --no-interaction --no-progress --ansi

- name: Enable code coverage
Expand All @@ -75,7 +76,7 @@ jobs:
run: vendor/bin/phpstan analyse --ansi

- name: Run e2e tests
if: startsWith(matrix.php, '8.0')
if: startsWith(matrix.php, '8.')
run: bin/compile

- name: Upload coverage results to Coveralls
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"php": ">=7.4",
"ext-json": "*",
"doctrine/inflector": "^1.4.3 || ^2.0",
"easyrdf/easyrdf": "^1.1",
"sweetrdf/easyrdf": "^1.6",
"friendsofphp/php-cs-fixer": "^2.15 || ^3.0",
"league/html-to-markdown": "^5.0",
"psr/log": "^1.0 || ^2.0 || ^3.0",
Expand Down
Loading

0 comments on commit ab36e6d

Please sign in to comment.