Skip to content

Commit

Permalink
Update UT workflow to test in both PHP8.1 and PHP8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Dec 11, 2022
1 parent 3a398c4 commit 2018a3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@ on:
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [8.1, 8.2]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install dependencies
run: composer install
- name: Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"require": {
"php": "^8.1"
"php": "^8.1 || ^8.2"
},
"require-dev": {
"ext-mbstring": "*",
Expand Down

0 comments on commit 2018a3c

Please sign in to comment.