Repository navigation
66 lines (56 loc) · 1.65 KB
/
Copy pathverify.yml
File metadata and controls
66 lines (56 loc) · 1.65 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Verify
on:
push:
pull_request:
permissions:
contents: read
env:
ContinuousIntegrationBuild: "true"
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
DOTNET_NOLOGO: "true"
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
jobs:
verify:
name: Windows verification
runs-on: windows-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install pinned .NET SDK
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: Cache NuGet packages
uses: actions/cache@v6
with:
path: ${{ env.NUGET_PACKAGES }}
key: nuget-${{ runner.os }}-${{ hashFiles('global.json', '**/*.csproj', '**/packages.lock.json') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Require PowerShell 7
shell: pwsh
run: |
if ($PSVersionTable.PSVersion.Major -lt 7) {
throw "PowerShell 7 or later is required; selected $($PSVersionTable.PSVersion)."
}
- name: Verify
shell: pwsh
run: |
pwsh -NoLogo -NoProfile -File scripts/verify.ps1
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
- name: Upload verification artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v7
with:
name: verification-artifacts
path: |
artifacts/test-results/
artifacts/dependency-audit/
artifacts/publish/startup.*.log
if-no-files-found: warn
retention-days: 14