-
Notifications
You must be signed in to change notification settings - Fork 145
39 lines (31 loc) · 1.38 KB
/
verify_app_trimming_changes_are_persisted.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
name: Verify app trimming xml file changes have been persisted
on:
pull_request:
workflow_dispatch:
jobs:
verify_app_trimming_descriptor_generator:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- uses: actions/setup-dotnet@71a4fd9b27383962fc5df13a9c871636b43199b4 # v1.10.0
with:
dotnet-version: '9.0.102'
- name: "Removing existing Datadog.Trace.Trimming.xml"
run: Get-ChildItem –Path ".\tracer\src\Datadog.Trace.Trimming\build\Datadog.Trace.Trimming.xml" -Recurse -File | Remove-Item
- name: "Regenerating Datadog.Trace.Trimming.xml"
run: .\tracer\build.ps1 BuildTracerHome CreateTrimmingFile
- name: "Verify no changes in Datadog.Trace.Trimming.xml"
run: |
git diff --quiet -- .\tracer\src\Datadog.Trace.Trimming\build
if ($LASTEXITCODE -eq 1) {
git diff -- .\tracer\src\Datadog.Trace.Trimming\build
Write-Error "Found changes in Datadog.Trace.Trimming.xml. Build the solution locally and ensure you have committed the Datadog.Trace.Trimming.xml changes."
Exit 1
} else {
echo "No changes found to generated files"
}