-
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK 8
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Set up Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
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@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: mutation_report
path: aggregator/target/pit-reports
- name: Save project mutation reports
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: pages
- name: Download
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
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@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
branch: pages