-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.25 KB
/
Copy pathmutation.yml
File metadata and controls
54 lines (47 loc) · 1.25 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
name: Mutation testing
on:
push:
branches: [main]
paths:
- "backend/src/domain/**"
- "backend/src/application/**"
- "backend/src/interfaces/http/**"
- "backend/stryker.config.json"
- ".github/workflows/mutation.yml"
pull_request:
paths:
- "backend/src/domain/**"
- "backend/src/application/**"
- "backend/src/interfaces/http/**"
- "backend/stryker.config.json"
- ".github/workflows/mutation.yml"
schedule:
# Mondays 04:00 UTC. Catches drift even when domain/ has not changed.
- cron: "0 4 * * 1"
concurrency:
group: mutation-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
stryker:
name: Stryker (backend domain)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- name: Install
run: npm ci
- name: Run Stryker
run: npm run mutation --workspace backend
- name: Upload mutation report
if: always()
uses: actions/upload-artifact@v7
with:
name: mutation-report
path: backend/reports/mutation/
retention-days: 14