-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.04 KB
/
ci.yml
File metadata and controls
35 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # TODO [ubuntu-latest, windows-latest, macos-latest] https://github.com/php-actions/composer/issues/95
# https://endoflife.date/php
php-version: ['8.1', '8.2', '8.3']
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
- name: Lint with Psalm
run: ./vendor/bin/psalm --shepherd --stats --threads=4
- name: Test with Coverage
uses: php-actions/phpunit@v4
env:
XDEBUG_MODE: coverage
with:
php_version: ${{ matrix.php-version }}
php_extensions: xdebug
args: test --coverage-clover ./coverage.xml
- name: Upload coverage to Codecov
if: ${{ matrix.php-version == '8.3' && matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}