-
Notifications
You must be signed in to change notification settings - Fork 16
32 lines (28 loc) · 1.02 KB
/
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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore dependencies of PortToTripleSlash
run: dotnet restore src/PortToTripleSlash/PortToTripleSlash.sln
- name: Build PortToTripleSlash
run: dotnet build --no-restore src/PortToTripleSlash/PortToTripleSlash.sln
# Re-enable when the msbuild failure is fixed, to prevent skipping the subsequent tasks
- name: Test PortToTripleSlash
run: dotnet test --no-build --verbosity normal src/PortToTripleSlash/PortToTripleSlash.sln
- name: Restore dependencies of PortToDocs
run: dotnet restore src/PortToDocs/PortToDocs.sln
- name: Build PortToDocs
run: dotnet build --no-restore src/PortToDocs/PortToDocs.sln
- name: Test PortToDocs
run: dotnet test --no-build --verbosity normal src/PortToDocs/PortToDocs.sln