-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (41 loc) · 1.19 KB
/
Zen.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
name: Zen
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'TestGenerator/**'
- '!**/README.md'
pull_request:
branches: [ main ]
paths:
- 'TestGenerator/**'
jobs:
Zen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: csharp, python
- name: Build the project
run: dotnet build TestGenerator
- name: Add Msbuild package
run: |-
cd TestGenerator/Tests
dotnet add package coverlet.msbuild
- name: Run tests
run: dotnet test TestGenerator /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: TestGenerator/Tests/coverage.opencover.xml
fail_ci_if_error: true