-
Notifications
You must be signed in to change notification settings - Fork 547
154 lines (147 loc) · 4.29 KB
/
main.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
name: Passenger CI tests
env:
DEFAULT_RUBY_VERSION: 3.1.6
COMPILE_CONCURRENCY: 4
on:
push:
branches: [ 'stable-*', 'feature/*' ]
pull_request:
branches: [ 'stable-*', 'feature/*' ]
jobs:
cxx:
name: "C++ unit tests on ${{ matrix.os }}, as ${{ matrix.user }}"
strategy:
fail-fast: false
matrix:
user:
- root
- 'normal-user'
os:
- macos-latest
- ubuntu-latest
exclude:
- os: macos-latest
user: 'root'
runs-on: ${{ matrix.os }}
env:
SUDO: ${{ matrix.user == 'root' && 1 || 0 }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.DEFAULT_RUBY_VERSION }}
bundler-cache: true
- run: ./dev/ci/setup-host cxx
- run: ./dev/ci/run-tests-with-docker cxx
if: matrix.os == 'ubuntu-latest'
- run: ./dev/ci/run-tests-natively cxx
if: matrix.os == 'macos-latest'
- run: ls -R buildout
- uses: actions/upload-artifact@v4
with:
name: cxx-${{ matrix.os }}-${{ matrix.user }}
path: 'buildout/testlogs/*'
integration:
name: '${{ matrix.integration.name }} integration tests on ${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
integration:
- name: 'Apache 2'
label: 'apache2'
- name: 'Nginx dynamic module'
label: 'nginx-dynamic'
- name: 'Nginx'
label: 'nginx'
- name: 'Standalone'
label: 'standalone'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.DEFAULT_RUBY_VERSION }}
bundler-cache: true
- run: ./dev/ci/setup-host ${{ matrix.integration.label }}
- run: ./dev/ci/run-tests-with-docker ${{ matrix.integration.label }}
if: matrix.os == 'ubuntu-latest'
- run: ./dev/ci/run-tests-natively ${{ matrix.integration.label }}
if: matrix.os == 'macos-latest'
- run: ls -R buildout
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.integration.label }}-${{ matrix.os }}
path: 'buildout/testlogs/*'
language:
name: '${{ matrix.lang.name }} unit tests on ${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
lang:
- name: 'Node.js'
label: 'nodejs'
- name: 'Ruby'
label: 'ruby'
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.DEFAULT_RUBY_VERSION }}
bundler-cache: true
- run: ./dev/ci/setup-host ${{ matrix.lang.label }}
- run: ./dev/ci/run-tests-with-docker ${{ matrix.lang.label }}
if: matrix.os == 'ubuntu-latest'
- run: ./dev/ci/run-tests-natively ${{ matrix.lang.label }}
if: matrix.os == 'macos-latest'
- run: ls -R buildout
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.lang.label }}-${{ matrix.os }}
path: 'buildout/testlogs/*'
homebrew_packaging:
name: 'Homebrew packaging unit tests'
runs-on: macos-latest
env:
GEM_HOME: ${{ github.workspace }}/.gem
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: ./dev/ci/setup-host homebrew-packaging
- run: ./dev/ci/run-tests-natively homebrew-packaging
- run: ls -R buildout
- uses: actions/upload-artifact@v4
with:
name: homebrew-${{ matrix.os }}
path: 'buildout/testlogs/*'
source_packaging:
name: 'Source packaging unit tests'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.DEFAULT_RUBY_VERSION }}
bundler-cache: true
- run: ./dev/ci/setup-host source-packaging
- run: ./dev/ci/run-tests-with-docker source-packaging
- run: ls -R buildout
- uses: actions/upload-artifact@v4
with:
name: source-packaging-${{ matrix.os }}
path: 'buildout/testlogs/*'