Skip to content

Commit

Permalink
Run tests on different PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Oct 17, 2023
1 parent ad5dacc commit d046f73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/php.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: 'Tests'

on:
push:
Expand All @@ -9,21 +9,25 @@ on:
permissions:
contents: read

env:
PHP_VERSION: 8.2

jobs:
build:

runs-on: ubuntu-latest

name: "PHP ${{ matrix.php }}"

strategy:
fail-fast: false
matrix:
php: ["8.0", "8.1", "8.2"]

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ env.PHP_VERSION }}"
php-version: "${{ matrix.php }}"
tools: composer-require-checker
coverage: none

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"symfony/lock": "^6.0"
},
"require-dev": {
"phpunit/phpunit": "^10.4",
"phpunit/phpunit": "^9.0 || ^10.0",
"php-http/discovery": "^1.19",
"pds/skeleton": "^1.0"
},
Expand Down

0 comments on commit d046f73

Please sign in to comment.