-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 1.29 KB
/
main.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
name: main PR+push
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
TEST_BUNGIE_API_KEY: ${{ secrets.TEST_BUNGIE_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Get version suffix
id: get_suffix
run: echo ::set-output name=SUFFIX::${GITHUB_SHA:0:9}
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8
- name: Pack entities NuGet package
run: dotnet pack ./BungieSharper.Entities -c Release --output OutputPackage -p:ContinuousIntegrationBuild=true -p:VersionSuffix=${{ steps.get_suffix.outputs.SUFFIX }}
- name: Pack client NuGet package
run: dotnet pack ./BungieSharper -c Release --output OutputPackage -p:ContinuousIntegrationBuild=true -p:VersionSuffix=${{ steps.get_suffix.outputs.SUFFIX }}
- name: Upload artifact (nupkg/snupkg)
uses: actions/upload-artifact@v1
with:
name: BungieSharper_${{ steps.get_suffix.outputs.SUFFIX }}
path: OutputPackage
- name: Run test
run: dotnet test ./BungieSharper.Tests -c Release --verbosity normal