-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (38 loc) · 1.14 KB
/
ci.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
name: CI build-test-pack
on: [push]
jobs:
build:
# In order to run netframework test targets
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install dependencies
run: dotnet restore
shell: bash
- name: Build
run: dotnet build --no-restore --configuration Release
shell: bash
- name: Test
run: dotnet test --no-restore --no-build --configuration Release --logger trx --results-directory "TestResults"
shell: bash
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: TestResults
path: TestResults
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Pack
run: dotnet pack --no-restore --no-build --configuration Release --version-suffix CI-$GITHUB_RUN_ID --output pkg
shell: bash
- name: Upload package
uses: actions/upload-artifact@v2
with:
name: DeltaQ-pkg
path: pkg/*.*