This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
forked from pardeike/Harmony
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (52 loc) · 1.58 KB
/
test.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
name: Test
on:
push:
paths:
- '.github/workflows/test.yml'
- 'Harmony/**'
- 'HarmonyTest/**'
workflow_dispatch:
env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
ubuntu:
name: Test Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup .NET 3.1.x
uses: actions/setup-dotnet@master
with:
dotnet-version: 3.1.x
- name: Setup .NET 7.0
uses: actions/setup-dotnet@master
with:
dotnet-version: 7.0.x
- name: Test Harmony Debug
run: dotnet test HarmonyTests/HarmonyTests.csproj --configuration Debug
- name: Test Harmony Release
run: dotnet test HarmonyTests/HarmonyTests.csproj --configuration Release
windows:
name: Test Windows
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup .NET 3.1.x
uses: actions/setup-dotnet@master
with:
dotnet-version: 3.1.x
- name: Setup .NET 7.0
uses: actions/setup-dotnet@master
with:
dotnet-version: 7.0.x
- name: Test Harmony Debug
run: dotnet test HarmonyTests/HarmonyTests.csproj --configuration Debug
- name: Test Harmony Release
run: dotnet test HarmonyTests/HarmonyTests.csproj --configuration Release