-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (53 loc) · 1.7 KB
/
linux_windows_and_macos_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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Linux, Windows and macOS .NET Core
on:
push:
branches: [ "master" ]
paths-ignore:
- '**/README.md'
pull_request:
branches: [ "master" ]
paths-ignore:
- '**/README.md'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore "$GITHUB_WORKSPACE/amp multiplatform.sln"
- name: Build
run: dotnet build --no-restore "$GITHUB_WORKSPACE/amp multiplatform.sln"
- name: Test
run: dotnet test --no-build --verbosity normal "$GITHUB_WORKSPACE/amp.Tests/amp.Tests.csproj"
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore "$Env:GITHUB_WORKSPACE/amp multiplatform.sln"
- name: Build
run: dotnet build --no-restore "$Env:GITHUB_WORKSPACE/amp multiplatform.sln"
- name: Test
run: dotnet test --no-build --verbosity normal "$Env:GITHUB_WORKSPACE/amp.Tests/amp.Tests.csproj"
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore "$GITHUB_WORKSPACE/amp multiplatform.sln"
- name: Build
run: dotnet build --no-restore "$GITHUB_WORKSPACE/amp multiplatform.sln"
- name: Test
run: dotnet test --no-build --verbosity normal "$GITHUB_WORKSPACE/amp.Tests/amp.Tests.csproj"