-
Notifications
You must be signed in to change notification settings - Fork 18
75 lines (63 loc) · 2.11 KB
/
mutation.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
name: Mutation
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
LANG: en_GB
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK 8
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Set up Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '14.15.1'
cache: 'npm'
cache-dependency-path: report/report-ng/package-lock.json
- name: Run mutation testing
run: mvn -B -Paggregate -Dnode=system test org.pitest:pitest-maven:mutationCoverage package
- name: Save aggregated mutation report
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: mutation_report
path: aggregator/target/pit-reports
- name: Save project mutation reports
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: ${{ failure() }}
with:
name: project_mutation_reports
path: '**/target/pit-reports'
publish:
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
needs: build
runs-on: ubuntu-latest
continue-on-error: true
concurrency: pages_branch
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: pages
- name: Download
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
path: mutation/ingest
- name: Ingest
run: perl regen_index.pl $GITHUB_HEAD_REF >> $GITHUB_STEP_SUMMARY
- name: Commit
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
branch: pages