Skip to content

Commit 0974b32

Browse files
committed
Test in php 8.1 & 8.2
1 parent 8d163ba commit 0974b32

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
php: [8.0, 8.1]
15+
php: [8.1, 8.2]
1616
stability: [prefer-lowest, prefer-stable]
1717

1818
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
1919

2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v2
23+
with:
24+
# Fetch 10 commits or Scrutinizer will throw ("Failed to retrieve commit parents. If you use a shallow git checkout, please checkout at least a depth of one."), see: RepositoryIntrospector at scrutinizer-ci/ocular GitHub repository
25+
# 10 commits is an arbitrary value that is more than 1 commit
26+
fetch-depth: 10
2327

2428
- name: Cache dependencies
2529
uses: actions/cache@v1
@@ -37,11 +41,11 @@ jobs:
3741
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
3842

3943
- name: PHP Security Checker
40-
uses: symfonycorp/security-checker-action@v2
44+
uses: symfonycorp/security-checker-action@v5
4145
if: ${{ matrix.stability == 'prefer-stable' }}
4246

4347
- name: Execute tests
4448
run: vendor/bin/phpunit --coverage-clover=coverage.clover --verbose
4549

4650
- name: Upload Code Coverage
47-
run: wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover
51+
run: vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

0 commit comments

Comments
 (0)