-
-
Notifications
You must be signed in to change notification settings - Fork 95
101 lines (98 loc) · 3.18 KB
/
linux.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
name: Linux
on:
pull_request: null
push:
branches:
- master
- develop
- release
schedule:
- cron: "30 4 * * *"
env:
NODE_COVERALLS_DEBUG: true
jobs:
auth:
runs-on: ubuntu-latest
name: Login to GitHub Container Registry
steps:
- uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
vanilla:
strategy:
matrix:
version: ["8.0", "8.1", "8.2", "8.3", "8.4"]
build: ["gcov", "release"]
if: success() || failure()
runs-on: ubuntu-latest
needs: auth
name: Linux, PHP v${{matrix.version}}, ${{matrix.build}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test parallel
run: docker compose run parallel-${{matrix.build}}-${{matrix.version}} docker/parallel.test
- name: Send Coverage
if: ${{ matrix.build == 'gcov' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ github.workspace }}/coverage.info
flag-name: vanilla-${{matrix.version}}
parallel: true
opcache:
strategy:
matrix:
version: ["8.0", "8.1", "8.2", "8.3", "8.4"]
build: ["gcov", "release"]
if: success() || failure()
runs-on: ubuntu-latest
needs: auth
name: Linux, PHP v${{matrix.version}}, ${{matrix.build}}, opcache
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test parallel
run: docker compose run parallel-${{matrix.build}}-${{matrix.version}} docker/parallel.test -d opcache.enable_cli=1 -d opcache.jit=disable
- name: Build Coveralls
if: ${{ matrix.build == 'gcov' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ github.workspace }}/coverage.info
flag-name: opcache-${{matrix.version}}
parallel: true
jit:
strategy:
matrix:
version: ["8.0", "8.1", "8.2", "8.3", "8.4"]
build: ["gcov", "release"]
if: success() || failure()
runs-on: ubuntu-latest
needs: auth
name: Linux, PHP v${{matrix.version}}, ${{matrix.build}}, JIT
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test parallel
run: docker compose run parallel-${{matrix.build}}-${{matrix.version}} docker/parallel.test -d opcache.enable_cli=1 -d opcache.jit=function -d opcache.jit_buffer_size=32M
- name: Build Coveralls
if: ${{ matrix.build == 'gcov' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ github.workspace }}/coverage.info
flag-name: jit-${{matrix.version}}
parallel: true
finish:
if: always()
runs-on: ubuntu-latest
needs: [vanilla, opcache, jit]
steps:
- name: Finish Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true