-
Notifications
You must be signed in to change notification settings - Fork 32
63 lines (53 loc) · 1.2 KB
/
build-and-publish.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
name: build and publish
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
env:
TERM: xterm-256color
jobs:
build-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 5.5
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Set RUN_COVERAGE
run: |
echo "RUN_COVERAGE=true" >> $GITHUB_ENV
if: matrix.php-version == '8.1'
- name: Build
run: make build
- name: Test
run: make test
- name: Clover to LCOV
uses: andstor/clover2lcov-action@v1
with:
src: build/clover.xml
dst: build/lcov.info
if: matrix.php-version == '8.1'
- name: Coveralls
uses: coverallsapp/github-action@v2.3.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: build/lcov.info
if: matrix.php-version == '8.1'