File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 shell : bash
3737 run : dotnet restore src/Akavache.slnx
3838
39- - name : Probe empty baseline
40- shell : bash
41- run : |
42- set +e
43- : > src/Akavache.Core/PublicAPI/net10.0-ios/PublicAPI.txt
44- dotnet build src/Akavache.Core/Akavache.csproj -f net10.0-ios > "$RUNNER_TEMP/build.log" 2>&1
45- echo "build exit: $?"
46- grep -oE "(error|warning) PAS[0-9]+[^\[]*" "$RUNNER_TEMP/build.log" | sort | uniq -c | sort -rn | head -n 20
47- dotnet format analyzers src/Akavache.Core/Akavache.csproj -f net10.0-ios --diagnostics PAS0001 PAS0003 --severity info -v diag > "$RUNNER_TEMP/format.log" 2>&1
48- echo "format exit: $?"
49- tail -n 30 "$RUNNER_TEMP/format.log"
50- echo "baseline bytes: $(wc -c < src/Akavache.Core/PublicAPI/net10.0-ios/PublicAPI.txt)"
51- git checkout -- src/Akavache.Core/PublicAPI/net10.0-ios/PublicAPI.txt
52-
5339 - name : Regenerate baselines
5440 shell : bash
5541 run : |
@@ -140,11 +126,11 @@ jobs:
140126 // updates entries - a member that has since been removed is PAS0002, which has no fix - so
141127 // regenerating in place would leave a stale entry behind and fail the next build.
142128 Directory.CreateDirectory(Path.GetDirectoryName(baseline)!);
143- File.WriteAllText (baseline, string.Empty );
129+ File.Delete (baseline);
144130
145131 var started = Stopwatch.GetTimestamp();
146132 var output = Run(
147- $"format analyzers \"{project}\" -f {tfm} --diagnostics PAS0001 PAS0003 --severity info -v m",
133+ $"format analyzers \"{project}\" -f {tfm} --diagnostics PAS0001 PAS0003 PAS0004 --severity info -v m",
148134 srcDir,
149135 out var code);
150136 var elapsed = Stopwatch.GetElapsedTime(started);
You can’t perform that action at this time.
0 commit comments