-
Notifications
You must be signed in to change notification settings - Fork 67
77 lines (67 loc) · 1.51 KB
/
Build_and_run_tests.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build and run Pulsar4X tests
on:
push:
branches: [ DevBranch ]
pull_request:
branches: [ DevBranch ]
jobs:
windows-server-2022:
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Build
shell: pwsh
run: |
cd Pulsar4X
dotnet restore "Pulsar4X.sln"
dotnet build --no-restore
- name: Run tests
shell: pwsh
run: |
cd Pulsar4X
dotnet test --no-restore
ubuntu-22:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Build
shell: bash
run: |
cd Pulsar4X
dotnet restore "Pulsar4X.sln"
dotnet build --no-restore
- name: Run tests
shell: bash
run: |
cd Pulsar4X
dotnet test --no-restore
macOS-12:
runs-on: macos-12
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Build
shell: bash
run: |
cd Pulsar4X
dotnet restore "Pulsar4X.sln"
dotnet build --no-restore
- name: Run tests
shell: bash
run: |
cd Pulsar4X
dotnet test --no-restore