forked from Blazor-Diagrams/Blazor.Diagrams
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 960 Bytes
/
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
name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build - ${{ matrix.configuration }}
strategy:
matrix:
configuration: [ Debug, Release ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
3.1.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration ${{ matrix.configuration }}
- name: Test
if: matrix.configuration == 'Debug'
run: dotnet test --no-build
- name: Upload packages
if: matrix.configuration == 'Release'
uses: actions/upload-artifact@v3
with:
name: package
path: /home/runner/work/Blazor.Diagrams/Blazor.Diagrams/src/Blazor.Diagrams/bin/Release/*.nupkg
retention-days: 5