-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.99 KB
/
build-pr.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
name: Build - PR
on:
pull_request:
branches: [ master ]
jobs:
build-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-restore --no-build
- name: Test Coverage SoloX.ExpressionTools.Parser.UTest
id: coverage-parser-utest
run: |
dotnet test ./src/tests/SoloX.ExpressionTools.Parser.UTest --configuration Release --no-restore --no-build --collect:"XPlat Code Coverage" --settings coverlet.runsettings
echo "::set-output name=FILE::$(find ./src/tests/SoloX.ExpressionTools.Parser.UTest -name 'coverage.info' -print)"
- name: Send to coverals
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage-parser-utest.outputs.FILE }}
flag-name: coverage-parser-utest
parallel: true
- name: Test Coverage SoloX.ExpressionTools.Transform.UTest
id: coverage-transform-utest
run: |
dotnet test ./src/tests/SoloX.ExpressionTools.Transform.UTest --configuration Release --no-restore --no-build --collect:"XPlat Code Coverage" --settings coverlet.runsettings
echo "::set-output name=FILE::$(find ./src/tests/SoloX.ExpressionTools.Transform.UTest -name 'coverage.info' -print)"
- name: Send to coverals
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage-transform-utest.outputs.FILE }}
flag-name: coverage-transform-utest
parallel: true
- name: Finish coverals
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true