-
-
Notifications
You must be signed in to change notification settings - Fork 98
63 lines (60 loc) · 1.89 KB
/
Copy pathlinux.yml
File metadata and controls
63 lines (60 loc) · 1.89 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Linux
permissions:
contents: read
pull-requests: read
on:
pull_request: null
push:
branches:
- master
- develop
- release
schedule:
- cron: "30 4 * * *"
env:
NODE_COVERALLS_DEBUG: true
jobs:
test:
strategy:
fail-fast: false
matrix:
version: ["8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]
build: ["gcov", "release"]
mode:
- name: vanilla
args: ""
- name: opcache
args: -d opcache.enable_cli=1 -d opcache.jit=disable
- name: jit
args: -d opcache.enable_cli=1 -d opcache.jit=function -d opcache.jit_buffer_size=32M
runs-on: ubuntu-latest
name: Linux, PHP v${{matrix.version}}, ${{matrix.build}}, ${{matrix.mode.name}}
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Login to GitHub Container Registry
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Test parallel
run: PHP_BUILD=${{matrix.build}} PHP_VERSION=${{matrix.version}} docker compose run --rm parallel docker/parallel.test ${{matrix.mode.args}}
- name: Send Coverage
if: ${{ matrix.build == 'gcov' }}
uses: coverallsapp/github-action@v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ github.workspace }}/coverage.info
flag-name: ${{matrix.mode.name}}-${{matrix.version}}
parallel: true
finish:
if: always()
runs-on: ubuntu-latest
needs: test
steps:
- name: Finish Coveralls
uses: coverallsapp/github-action@v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true