Skip to content

Commit 5142fbd

Browse files
author
Six
committed
Added codecov token.
Minor other changes.
1 parent c633548 commit 5142fbd

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,17 @@ jobs:
2323
php-version: ${{ matrix.php-version }}
2424
extensions: gmp, xdebug
2525
coverage: xdebug
26-
26+
2727
- name: Install dependencies
28-
run: composer install --prefer-dist --no-progress
28+
run: composer self-update && composer install && composer dump-autoload
2929

3030
- name: Run PHPStan
31-
run: composer stan
32-
33-
- name: Run tests with coverage
34-
run: composer coverage
31+
run: vendor/bin/phpstan --no-progress
3532

33+
- name: Run tests and collect coverage
34+
run: vendor/bin/phpunit --coverage-clover coverage.xml .
35+
3636
- name: Upload coverage to Codecov
37-
uses: codecov/codecov-action@v3
38-
with:
39-
file: ./coverage.xml
40-
fail_ci_if_error: true
37+
uses: codecov/codecov-action@v5
38+
env:
39+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)