-
Notifications
You must be signed in to change notification settings - Fork 125
56 lines (56 loc) · 1.65 KB
/
CI.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on: [push, pull_request]
jobs:
cs-check:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: setup
uses: shivammathur/setup-php@master
with:
php-version: 7.2
extension-csv: mbstring, fileinfo, json, intl, dom
- name: install
run: composer install
- name: 'php-cs-fixer check'
run: 'vendor/bin/php-cs-fixer --dry-run --diff'
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
matrix:
php-versions: ['7.2', '7.3', '7.4']
name: tests-${{ matrix.php-versions }}
steps:
- name: checkout
uses: actions/checkout@master
- name: setup
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extension-csv: mbstring, fileinfo, json, intl, dom
- name: install
run: composer install
- name: tests
run: composer test
coverage:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: setup
uses: shivammathur/setup-php@master
with:
php-version: 7.2
extension-csv: mbstring, fileinfo, json, intl, dom
- name: coveralls-setup
run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar && chmod +x coveralls.phar
- name: install
run: composer install
- name: tests
run: composer test-coverage
- name: coveralls-sync
run: ./coveralls.phar -v
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}