-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1.1 KB
/
php.test.yml
File metadata and controls
45 lines (38 loc) · 1.1 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
36
37
38
39
40
41
42
43
44
45
name: "php.test"
on:
pull_request:
branches: [master, develop]
push:
branches: [master]
jobs:
build:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ["7.3", "7.4", "8.0"]
steps:
- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
extensions: intl
php-version: "${{ matrix.php-versions }}"
coverage: pcov
- name: Checkout
uses: actions/checkout@v2
- name: "Validate composer.json and composer.lock"
run: "composer validate"
- name: "Install dependencies"
run: "composer install --prefer-dist --no-progress --no-suggest"
- name: "Run test suite"
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: tests
name: codecov-umbrella
yml: ./codecov.yml
fail_ci_if_error: true