forked from lidgren/lidgren-network-gen3
-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (39 loc) · 1.25 KB
/
pr-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
name: Lidgren.Network PRs
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
LIDGREN_VERSION: '2.0.0.${{ github.run_number }}'
ARTIFACT_NAME: 'Lidgren.Network.2.0.0.${{ github.run_number }}'
outputs:
artifact_name: '${{ env.ARTIFACT_NAME }}'
nupkg_base_name: 'AscensionGameDev.Lidgren.Network.${{ env.LIDGREN_VERSION }}-beta'
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.*
- name: Restore dependencies
run: dotnet restore
- id: build_debug
name: Build (Debug)
run: dotnet build --no-restore -c Debug -p:VersionPrefix=$LIDGREN_VERSION -p:VersionSuffix=beta-debug
- id: build_release
name: Build (Release)
run: dotnet build --no-restore -c Release -p:VersionPrefix=$LIDGREN_VERSION -p:VersionSuffix=beta
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: '${{ env.ARTIFACT_NAME }}'
path: 'Lidgren.Network/bin/*'
if-no-files-found: error
retention-days: 1
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- name: Tests (main)
run: dotnet test --verbosity normal