-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (33 loc) · 862 Bytes
/
build.yaml
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
name: build
on:
push:
branches:
- '**'
tags:
- '!**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Git Checkout
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v3
name: .NET Setup
with:
dotnet-version: 7.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '6.x'
includePrerelease: true
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
- name: Restoring
run: dotnet restore --verbosity normal
- name: Building
run: dotnet build --configuration Release --no-restore --verbosity normal
- name: Testing
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal