-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (42 loc) · 1.68 KB
/
build.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
name: build
on: [push]
env:
VERSION_PREFIX: "0.0.1"
jobs:
# Need to test and pack separately because github actions only support docker services in linux,
# but linux doesn't support targetting net45 framework.
test:
runs-on: ubuntu-latest
services:
dynamo:
image: amazon/dynamodb-local
ports: [ '8000:8000' ]
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- name: Setup .NET Core
uses: Brightspace/third-party-actions@actions/setup-dotnet
with:
dotnet-version: 3.1.x
- name: dotnet test --framework "netcoreapp3.1"
run: dotnet test --configuration Release --framework "netcoreapp3.1"
pack:
runs-on: windows-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- name: Setup .NET Core
uses: Brightspace/third-party-actions@actions/setup-dotnet
with:
dotnet-version: 3.1.x
- name: dotnet tool restore
run: dotnet tool restore
- name: Generate version properties
run: dotnet ci-version-properties --output VersionInfo.props && cat VersionInfo.props
- name: dotnet test
run: dotnet pack --configuration Release
- name: Copy *.nuget to dist/
run: mkdir dist/ && cp src/D2L.DynamoDBv2.NUnitHelpers/bin/Release/*.nupkg dist/
- name: Archive dist/
uses: actions/upload-artifact@v1
with:
name: dist
path: dist/