-
-
Notifications
You must be signed in to change notification settings - Fork 52
29 lines (28 loc) · 1.07 KB
/
actions.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
name: Tests
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4', '8.0', '8.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up php and composer
uses: shivammathur/setup-php@develop
with:
php-version: ${{ matrix.php-versions }}
extensions: iconv, mbstring
ini-values: pcov.directory=api
coverage: pcov
tools: composer:v2
- name: Install dependencies
run: composer install --no-progress --prefer-dist --ignore-platform-reqs
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml --coverage-text
- name: Send Coverage
continue-on-error: true
timeout-minutes: 1
run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f build/logs/clover.xml -n github-actions-codecov-${{ matrix.operating-system }}-php${{ matrix.php-versions }}