Skip to content

Commit 856c9cb

Browse files
authored
add initial github actions builds
1 parent 58edead commit 856c9cb

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags: [ "v*" ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: 5.0.x
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
- name: Build
26+
run: dotnet build --no-restore
27+
- name: Test
28+
run: dotnet test --no-build --verbosity normal
29+
- name: Package
30+
run: dotnet pack --no-restore --output ./release
31+
- name: Upload a Build Artifact
32+
uses: actions/upload-artifact@v2.2.0
33+
with:
34+
name: packages
35+
path: ./release/*

0 commit comments

Comments
 (0)