-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathverify_files_without_nullability.yml
More file actions
39 lines (31 loc) · 1.27 KB
/
verify_files_without_nullability.yml
File metadata and controls
39 lines (31 loc) · 1.27 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
name: Verify nullability file changes have been persisted
on:
pull_request:
workflow_dispatch:
jobs:
verify_files_without_nullability:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
global-json-file: global.json
- name: "Removing existing missing-nullability-files.csv"
run: Get-ChildItem –Path ".\tracer\missing-nullability-files.csv" | Remove-Item
- name: "Regenerating missing-nullability-files.csv"
run: .\tracer\build.ps1 CreateMissingNullabilityFile
- name: "Verify no changes in missing-nullability-files.csv"
run: |
git diff --quiet -- .\tracer
if ($LASTEXITCODE -eq 1) {
git diff -- .\tracer
Write-Error "Found changes in missing-nullability-files.csv. Build the solution locally and ensure you have committed the missing-nullability-files.csv changes."
Exit 1
} else {
echo "No changes found to generated files"
}