-
Notifications
You must be signed in to change notification settings - Fork 157
46 lines (35 loc) · 922 Bytes
/
dotnet.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
name: .NET
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.100"
include-prerelease: true
- name: Build
run: dotnet build
- name: Test
run: dotnet test --no-build --verbosity normal
dotnet-format:
runs-on: windows-latest
steps:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.100"
include-prerelease: true
- name: Check out code
uses: actions/checkout@v2
- name: Install dotnet-format tool
run: dotnet tool install -g dotnet-format
- name: Run dotnet-format
run: dotnet-format --check --no-restore