-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 961 Bytes
/
tests.yml
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
36
37
38
39
40
41
42
---
name: tests
on:
- push
- pull_request
- workflow_dispatch
jobs:
run:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php:
- '8.3'
experimental:
- false
# include:
# - php: '8.4'
# experimental: true
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: xdebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run composer
run: composer install --no-progress
- name: Run phpunit
run: vendor/bin/phpunit --coverage-clover ./coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}