Skip to content

Commit ea1e2a9

Browse files
dotnet Build action
1 parent fedac4a commit ea1e2a9

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: [ * ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 5.0.x
20+
- name: Build, restore, test
21+
run: ./pipelines/build.ps1

pipelines/build.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Restore, Build and Test (don't publish)
2+
3+
Push-Location (Join-Path $PSScriptRoot ../dotnet)
4+
5+
try {
6+
dotnet restore
7+
dotnet build -c Release
8+
dotnet test -c Release
9+
}
10+
finally {
11+
Pop-Location
12+
}

0 commit comments

Comments
 (0)