-
Notifications
You must be signed in to change notification settings - Fork 0
254 lines (239 loc) · 8.52 KB
/
Copy pathci.yml
File metadata and controls
254 lines (239 loc) · 8.52 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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
support-evidence:
name: Support Evidence
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
- run: composer install --no-interaction --prefer-dist
- run: composer verify:evidence
- run: mkdir -p .pitmaster/proof
- run: php ./bin/verify-support-evidence --json > .pitmaster/proof/support-evidence-summary.json
- run: php ./bin/support-matrix >/dev/null
- run: git diff --exit-code -- SUPPORT_MATRIX.md
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: support-evidence
path: |
.pitmaster/proof/support-evidence-summary.json
SUPPORT_MATRIX.md
upstream-drift:
name: Upstream Drift Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
- run: composer install --no-interaction --prefer-dist
- run: composer verify:drift
dependency-audit:
name: Dependency Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
- run: composer install --no-interaction --prefer-dist
- run: composer audit --locked --no-interaction
lint:
name: Coding Standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
- run: composer install --no-interaction --prefer-dist
- run: composer cs
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
- run: composer install --no-interaction --prefer-dist
- run: composer analyse
test-unit:
name: Unit Tests (PHP ${{ matrix.php-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.4']
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer
extensions: zlib, mbstring
- run: composer install --no-interaction --prefer-dist
- run: composer test:unit
test-integration:
name: Integration Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
extensions: zlib, mbstring
ini-values: memory_limit=512M
- run: composer install --no-interaction --prefer-dist
- run: git config --global user.email "ci@pitmaster.dev"
- run: git config --global user.name "CI"
- run: git config --global init.defaultBranch main
- run: composer test:integration
test-oracle:
name: Oracle Regression
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
extensions: zlib, mbstring
ini-values: memory_limit=512M
- run: composer install --no-interaction --prefer-dist
- run: git config --global user.email "ci@pitmaster.dev"
- run: git config --global user.name "CI"
- run: git config --global init.defaultBranch main
- run: PITMASTER_TEST_JOBS=4 composer test:oracle
- run: composer verify:proof
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: proof-artifact
path: .pitmaster/proof/proof-artifact.json
mutation-smoke:
name: Mutation Smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
extensions: zlib, mbstring
- run: composer install --no-interaction --prefer-dist
- run: composer test:mutation
test-multi-git:
name: Multi-Git Smoke (${{ matrix.legacy-git }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
legacy-git: ['2.44.4', '2.46.2']
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
extensions: zlib, mbstring
- run: composer install --no-interaction --prefer-dist
- run: git config --global user.email "ci@pitmaster.dev"
- run: git config --global user.name "CI"
- run: git config --global init.defaultBranch main
- run: sudo apt-get update
- run: sudo apt-get install -y build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext zlib1g-dev curl
- run: curl -fsSL https://mirrors.edge.kernel.org/pub/software/scm/git/git-${{ matrix.legacy-git }}.tar.xz | tar -xJ
- run: make -C git-${{ matrix.legacy-git }} prefix=$HOME/git-${{ matrix.legacy-git }} NO_GETTEXT=YesPlease NO_TCLTK=YesPlease -j2 all install
- run: PITMASTER_TEST_GIT_BINARIES="$(command -v git):$HOME/git-${{ matrix.legacy-git }}/bin/git" vendor/bin/phpunit --filter MultiGitVersionSmokeTest
benchmark-smoke:
name: Benchmark Smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
extensions: zlib, mbstring
ini-values: memory_limit=512M
- run: composer install --no-interaction --prefer-dist
- run: git config --global user.email "ci@pitmaster.dev"
- run: git config --global user.name "CI"
- run: git config --global init.defaultBranch main
- run: composer bench -- --suite=smoke --runs=1 --warmups=0 --format=json --output=bench/reports/ci-smoke.local.json
- run: composer bench:verify -- bench/reports/ci-smoke.local.json bench/reports/smoke-thresholds.json
oracle-smoke:
name: Oracle Smoke (${{ matrix.scenario }})
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scenario:
- repository/init-basic
- refs/lightweight-tag-create
- status/status-porcelain-v2
- branch/branch-list-cli-parity
- refs/reflog-cli-parity
- grep/grep-cli-parity
- protocol/v1-upload-pack
- merge/merge-conflict-continue
- rebase/rebase-continue-no-state
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
extensions: zlib, mbstring
ini-values: memory_limit=512M
- run: composer install --no-interaction --prefer-dist
- run: git config --global user.email "ci@pitmaster.dev"
- run: git config --global user.name "CI"
- run: git config --global init.defaultBranch main
- run: ./bin/test-scenario ${{ matrix.scenario }}
oracle-smoke-macos:
name: Oracle Smoke (macOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
extensions: zlib, mbstring
ini-values: memory_limit=512M
- run: composer install --no-interaction --prefer-dist
- run: git config --global user.email "ci@pitmaster.dev"
- run: git config --global user.name "CI"
- run: git config --global init.defaultBranch main
- run: ./bin/test-scenario repository/init-basic
- run: ./bin/test-scenario status/status-porcelain-v2
- run: ./bin/test-scenario diff/diff-add-lines
- run: ./bin/test-scenario branch/branch-list-cli-parity
- run: ./bin/test-scenario refs/reflog-cli-parity
- run: ./bin/test-scenario grep/grep-cli-parity
- run: ./bin/test-scenario config/config-roundtrip
- run: ./bin/test-scenario config/config-include-local
- run: ./bin/test-scenario merge/merge-conflict-continue