-
-
Notifications
You must be signed in to change notification settings - Fork 239
34 lines (26 loc) · 903 Bytes
/
build.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"
- name: Setup .NET 7 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x"
- name: Test
run: dotnet test --collect:"XPlat Code Coverage"
- name: Update codecov
if: startsWith(github.repository, 'khellang/')
uses: codecov/codecov-action@v1