Repository navigation
89 lines (84 loc) · 2.75 KB
/
Copy pathmutation.yml
File metadata and controls
89 lines (84 loc) · 2.75 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
name: Mutation
permissions:
contents: read
on:
workflow_dispatch:
pull_request:
schedule:
- cron: "0 3 * * 0"
jobs:
pull-request:
if: github.event_name == 'pull_request'
name: Pull-request mutation
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run test:mutation:pr:force
- if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: mutation-pull-request
path: reports/mutation/
if-no-files-found: error
retention-days: 14
archive: true
full:
if: github.event_name != 'pull_request'
name: Full mutation (${{ matrix.shard }})
strategy:
fail-fast: false
matrix:
include:
- shard: critical
script: test:mutation:critical:force
- shard: render
script: test:mutation:shard:render:force
- shard: claude-cli
script: test:mutation:shard:claude-cli:force
- shard: state
script: test:mutation:shard:state:force
- shard: tracked-jobs
script: test:mutation:shard:tracked-jobs:force
- shard: job-control
script: test:mutation:shard:job-control:force
- shard: managed
script: test:mutation:shard:managed:force
- shard: installer
script: test:mutation:shard:installer:force
runs-on: ubuntu-latest
timeout-minutes: ${{ matrix.shard == 'state' && 60 || 45 }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run ${{ matrix.script }}
- if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: mutation-full-${{ matrix.shard }}
path: reports/mutation/
if-no-files-found: error
retention-days: 14
archive: true
merge:
needs: full
if: ${{ always() && github.event_name != 'pull_request' }}
name: Merge full mutation reports
runs-on: ubuntu-latest
steps:
- uses: actions/upload-artifact/merge@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: mutation-full
pattern: mutation-full-*
separate-directories: false
delete-merged: true
retention-days: 14