-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (61 loc) · 2.05 KB
/
pr-verification.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: pr-verification
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-template-presenter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Dependencies
run: npm install
working-directory: src/nscenario-report-browser/
- name: Build
run: npm run build
working-directory: src/nscenario-report-browser/
build-extension:
runs-on: windows-latest
needs: build-template-presenter
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
RepositoryUrl: 'https://github.com/${{ github.repository }}'
RepositoryBranch: '${{ github.ref }}'
SourceRevisionId: '${{ github.sha }}'
VersionSuffix: 'pr-${{github.event.number}}.${{ github.run_number }}'
Configuration: Release
SolutionPath: src\NScenario.sln
Deterministic: true
PackageReleaseNotes: 'https://github.com/${{ github.repository }}/releases'
ContinuousIntegrationBuild: true
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0'
- name: Calculate next version
uses: cezarypiatek/[email protected]
with:
minor-pattern: '.*'
major-pattern: 'BREAKING CHANGES'
output-to-env-variable: 'VersionPrefix'
- name: Materialize Signing Key
id: write_sign_key_file
uses: timheuer/base64-to-file@v1
with:
fileName: 'Key.snk'
encodedString: ${{ secrets.SIGNING_KEY }}
- name: Restore dependencies
run: |
dotnet nuget locals all --clear
dotnet restore $env:SolutionPath
- name: Build extension
run: dotnet build $env:SolutionPath
env:
SignAssembly: true
AssemblyOriginatorKeyFile: ${{ steps.write_sign_key_file.outputs.filePath }}