-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (39 loc) · 1.02 KB
/
validate-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
44
45
46
47
48
49
name: Validate Build
on:
push:
branches:
- main
- 'feature/**'
paths-ignore: [ '**.md' ]
pull_request:
branches:
- main
- 'feature/**'
paths-ignore: [ '**.md' ]
env:
solution: Microsoft.DurableTask.sln
config: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore $solution
- name: Build
run: dotnet build $solution --configuration $config --no-restore -p:FileVersionRevision=$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=true
- name: Test
run: dotnet test $solution --configuration $config --no-build --verbosity normal
- name: Pack
run: dotnet pack $solution --configuration $config --no-build
- name: Upload
uses: actions/upload-artifact@v3
with:
name: pkg
path: out/pkg