-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.01 KB
/
build-gate.yml
File metadata and controls
51 lines (39 loc) · 1.01 KB
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
51
name: pull-request-gate
on:
pull_request:
branches: [ '*' ]
env:
BUILD_VERSION: 0.2.${{github.run_number}}
SLN_PATH: src/ShellRunner.sln
TEST_PATH: src/TestApp/bin/Release/net8.0/TestApp.dll
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore $SLN_PATH
- name: Build
run: dotnet build $SLN_PATH
-c Release
--no-restore
-p:Version=$BUILD_VERSION
- name: Upload ShellRunner Build Artifacts
uses: actions/upload-artifact@v4.6.1
with:
name: BuildArtifacts
path: ./**/bin/Release/**/*
build-test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4.1.9
with:
name: BuildArtifacts
- name: Test
run: dotnet $TEST_PATH bash