-
Notifications
You must be signed in to change notification settings - Fork 111
37 lines (34 loc) · 990 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
name: build
on:
push:
branches:
- develop
- 'release_*'
pull_request:
branches:
- develop
- 'release_*'
jobs:
build:
name: Build Test
runs-on: windows-latest
# info about windows-latest https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
env:
DROP_DIR: drop
TEST_RESULT_DIR: drop\testresults
steps:
- uses: actions/checkout@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Build Everything
shell: powershell
run: ./build.ps1
- name: Run Tests
run: dotnet test code.sln --configuration release --nologo --settings test\unittests\default.runsettings --results-directory ${{ env.TEST_RESULT_DIR }} --logger trx
- name: upload artifacts
uses: actions/upload-artifact@master
with:
name: release_drop
path: ${{ env.DROP_DIR }}