-
Notifications
You must be signed in to change notification settings - Fork 24
105 lines (92 loc) · 2.51 KB
/
test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: CI
on:
push:
tags:
- 'v*.*.*'
branches:
- master
- develop
paths-ignore:
- '**/README.md'
- '**/CHANGELOG.md'
pull_request:
branches:
- master
- develop
paths-ignore:
- '**/README.md'
- '**/CHANGELOG.md'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: 5.3
php-unit: 4
coveralls: 1
coveralls-run: coveralls
- php: 5.4
php-unit: 4
coveralls: 1
coveralls-run: coveralls
- php: 5.5
php-unit: 4
coveralls: 2
coveralls-run: php-coveralls
- php: 5.6
php-unit: 5
coveralls: 2
coveralls-run: php-coveralls
- php: 7.0
php-unit: 5
coveralls: 2
coveralls-run: php-coveralls
- php: 7.1
php-unit: 5
coveralls: 2
coveralls-run: php-coveralls
- php: 7.2
php-unit: 5
coveralls: 2
coveralls-run: php-coveralls
- php: 7.3
php-unit: 5
coveralls: 2
coveralls-run: php-coveralls
- php: 8.0
php-unit: 9
coveralls: 2.6
coveralls-run: php-coveralls
- php: 8.1
php-unit: 9
coveralls: 2.6
coveralls-run: php-coveralls
- php: 8.2
php-unit: 9
coveralls: 2.6
coveralls-run: php-coveralls
name: Tests PHP ${{ matrix.php }} PHPUnit ${{ matrix.php-unit }}
steps:
- uses: actions/checkout@v3
- name: Setup PHP ${{ matrix.php }} PHPUnit ${{ matrix.php-unit }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer, phpunit:${{ matrix.php-unit }}
- run: composer install
- run: phpunit --coverage-clover tmp/clover.xml
- run: composer global require php-coveralls/php-coveralls:${{ matrix.coveralls }}.*
- name: Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: php-${{ matrix.php }}-${{ matrix.php-unit }}
run: ${{ matrix.coveralls-run }} --coverage_clover=tmp/clover.xml -v
coveralls:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@v2
with:
parallel-finished: true