forked from ClassicUO/ClassicUO
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.06 KB
/
build-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
name: Build-Test
on:
push:
branches: "*"
paths-ignore:
- '**/build-release.yml'
- 'appveyor.yml'
- '**/README.md'
pull_request:
branches: "*"
paths-ignore:
- '**/build-release.yml'
- 'appveyor.yml'
- '**/README.md'
env:
DOTNET_NOLOGO: false
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
NUGET_XMLDOC_MODE: skip
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-12, ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Get submodules
run: |
git config --global url."https://".insteadOf git://
git submodule update --init --recursive
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
include-prerelease: false
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --verbosity normal tests/ClassicUO.UnitTests