-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.53 KB
/
dotnetcore.yml
File metadata and controls
44 lines (38 loc) · 1.53 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
name: .NET Core Test and Publish
on:
push:
branches: master
pull_request:
env:
DOTNET_VERSION: 3.0.100
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install tools
run: |
dotnet tool install --tool-path ./ dotnet-format
- name: Check dotnet-format
run: |
./dotnet-format --check --dry-run -w src/TuringMachine -v diagnostic
./dotnet-format --check --dry-run -w src/TuringMachine.Core -v diagnostic
./dotnet-format --check --dry-run -w tests/TuringMachine.Core.Tests -v diagnostic
./dotnet-format --check --dry-run -w samples/Coverage.Payload -v diagnostic
./dotnet-format --check --dry-run -w samples/StackOverflowException.Payload -v diagnostic
./dotnet-format --check --dry-run -w samples/vulnserver/VulnServer.Payload -v diagnostic
- name: Test
run: |
dotnet add tests/TuringMachine.Core.Tests/TuringMachine.Core.Tests.csproj package coverlet.msbuild
dotnet test tests/TuringMachine.Core.Tests/TuringMachine.Core.Tests.csproj -v m /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov /p:Exclude=\"[coverlet.*]*,[*]Coverlet.Core*\"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}