-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.28 KB
/
dotnet.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build & Test
on:
workflow_dispatch:
inputs:
sds:
type: text
description: Why are you running this workflow?
required: false
default: Testing
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
configuration: [Release]
name: Build & Test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore dependencies
run: |
dotnet restore dekoeky.hello-world
dotnet restore dekoeky.hello-world.tests
- name: Build
run: |
dotnet build dekoeky.hello-world --no-restore -c ${{ matrix.configuration }}
dotnet build dekoeky.hello-world.tests --no-restore -c ${{ matrix.configuration }}
- name: Test
run: dotnet test --no-build --verbosity normal dekoeky.hello-world.tests -c ${{ matrix.configuration }}
- name: Print Assembly Versions
run: ./script/print-assembly-versions.ps1