Repository navigation
70 lines (67 loc) · 3.08 KB
/
Copy pathci-analysis.yml
File metadata and controls
70 lines (67 loc) · 3.08 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
name: CI-Analysis
on:
workflow_dispatch:
workflow_run:
workflows: [ "CI" ]
types:
- completed
jobs:
mutation-tests:
name: "Mutation tests"
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
pull-requests: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Setup .NET SDKs
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: |
8.0.x
9.0.x
10.0.3xx
- name: Upload mutation dashboard and create comment
run: ./build.sh MutationTestsComment
# The artifacts of the workflow run are untrusted, because a pull request controls the code that
# produces them, so the build identifies the pull request by these values of the event alone.
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
WorkflowRunId: ${{ github.event.workflow_run.id }}
WorkflowRunEvent: ${{ github.event.workflow_run.event }}
WorkflowRunHeadOwner: ${{ github.event.workflow_run.head_repository.owner.login }}
WorkflowRunHeadBranch: ${{ github.event.workflow_run.head_branch }}
WorkflowRunHeadSha: ${{ github.event.workflow_run.head_sha }}
benchmarks:
name: "Benchmarks"
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
pull-requests: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Setup .NET SDKs
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: |
8.0.x
9.0.x
10.0.3xx
- name: Create benchmark comment
run: ./build.sh BenchmarkComment
# The artifact of the workflow run is untrusted, because a pull request controls the code that
# produces it, so the build identifies the pull request by these values of the event alone.
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
WorkflowRunId: ${{ github.event.workflow_run.id }}
WorkflowRunEvent: ${{ github.event.workflow_run.event }}
WorkflowRunHeadOwner: ${{ github.event.workflow_run.head_repository.owner.login }}
WorkflowRunHeadBranch: ${{ github.event.workflow_run.head_branch }}
WorkflowRunHeadSha: ${{ github.event.workflow_run.head_sha }}