-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (64 loc) · 1.81 KB
/
ci-dev.yaml
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
name: Dev Build
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev, master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
- name: Cache .NET dependencies
uses: actions/cache@v3
with:
path: '~/.nuget/packages'
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-build
todo:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "TODO to Issue"
uses: alstr/todo-to-issue-action@v4.8.1
id: "todo"
with:
COMMENT_MARKER: "//"
TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLOSE_ISSUES: false
coverage:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
- name: Cache .NET dependencies
uses: actions/cache@v3
with:
path: '~/.nuget/packages'
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test --collect:"XPlat Code Coverage" --settings coverlet.runsettings -c Release --no-build
- name: Publish code coverage
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageLocations: "**/coverage.info:lcov"