Commit 9638258
Cache NuGet Packages (GitHub Actions) (#1172)
* feat: Added packages.lock.json
* ci: Add cache step
* Regenerate github workflows
* Rebuild packages.lock.json files with latest dependencies
* Exclude packages.lock.json from editorconfig checks
The packages.lock.json files are auto-generated by .NET and don't
include a final newline, causing the editorconfig checker to fail.
Since we can't control the format of these generated files, we
exclude them from the checks.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Revert "Rebuild packages.lock.json files with latest dependencies"
This reverts commit a022a27.
* Revert "feat: Added packages.lock.json"
This reverts commit 1f64653.
* .github/workflows/Generate-TestWorkflows.ps1: Removed step to set DOTNET_CLI_TELEMETRY_OPTOUT and DOTNET_NOLOGO actively and added them to the job directly. This step was taking 5-6 seconds just to set some variables.
* .github/workflows/Generate-TestWorflows.ps1: Removed cache step, but keep restore separate to determine how much time restore vs build takes
* Regenerated test workflows
* Directory.Build.props: Whitespace only commit to trigger build
* .github/workflows/Generate-TestWorkflows.ps1: Added --no-cache --force to restore as a temporary step to bust the old caching to get the build running
* Regenerated test workflows
* .github/workflows/Generate-TestWorkflows.ps1: Added missing TestFrameworks=true parameter on dotnet restore command. This is required to enable all target frameworks for tests.
* Regenerated test workflows
* .github/workflows/Generate-TestWorkflows.ps1: Added cache step with key based on all MSBuild files that manage package versions and references
* Regenerated test workflows
* .github/workflows/Generate-TestWorkflows.ps1: Set the NUGET_PACKAGES directory, since we use it for cache stability and the agent doesn't set it
* Regenerated test workflows
* Lucene.Net.Tests.AllProjects: Whitespace only change to test cache hit
* Lucene.Net.Tests.AllProjects: Whitespace only change to test cache miss
* Revert "Lucene.Net.Tests.AllProjects: Whitespace only change to test cache miss"
This reverts commit 6e02d03.
* Revert "Lucene.Net.Tests.AllProjects: Whitespace only change to test cache hit"
This reverts commit c5250b9.
* Revert "Directory.Build.props: Whitespace only commit to trigger build"
This reverts commit 60201c1.
* .github/workflows/sonar.yml: Updated to use the same cache key as other workflows that require dotnet restore
* .github/workflows/sonar.yml: Temporarily enable in PRs for testing purposes
* Lucene.Net.Expressions: Added private dependency on Antlr4.CodeGenerator, which contains a .jar file that Antlr4BuildTasks depends on.
* .github/workflows/sonar.yml: Added env.BUILD_FOR_ALL_TEST_TARGET_FRAMEWORKS to the cache key, restore, and build to ensure that all of the test target frameworks are included in the cache and scan
* .github/workflows/sonar.yml: Bumped action versions - setup-dotnet@v5, setup-java@v5, checkout@v5, cache@v4. Also changed shell to pwsh rather than powershell, where specified.
* .github/workflows/Generate-TestWorkflows.ps1: Added env.BUILD_FOR_ALL_TEST_TARGET_FRAMEWORKS to the cache key, restore, and build to ensure that all of the test target frameworks are inlcuded in the cache (or we get a separate cache)
* .github/workflows/Generate-TestWorkflows.ps1: Bumped action versions - setup-dotnet@v5, checkout@v5
* Regenerated test workflows
* Revert ".github/workflows/sonar.yml: Temporarily enable in PRs for testing purposes"
This reverts commit 3e77d68.
* Lucene.Net.Expressions.csproj: Exclude all assets from Antlr4.CodeGenerator. We are only after the .jar file.
* Lucene.Net.Expressions: Set the Antlr4ToolPath so Antlr4BuildTasks can find the jar file without including any assets from Antlr4.CodeGenerator.
* Lucene.Net.Expressions.csproj: Fixed .editorconfig rule violation
* .github/workflows/Generate-TestWorkflows.ps1: Added task to post test results to the GitHub Actions summary
* Regenerated test workflows
---------
Co-authored-by: Nikolaj Brask-Nielsen <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Shad Storhaug <[email protected]>1 parent 82a32df commit 9638258
File tree
41 files changed
+1260
-498
lines changed- .build
- .github/workflows
- src/Lucene.Net.Expressions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1260
-498
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
261 | 265 | | |
262 | | - | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 281 | + | |
285 | 282 | | |
286 | 283 | | |
287 | | - | |
| 284 | + | |
288 | 285 | | |
289 | 286 | | |
290 | 287 | | |
291 | 288 | | |
292 | 289 | | |
293 | | - | |
| 290 | + | |
294 | 291 | | |
295 | 292 | | |
296 | 293 | | |
297 | 294 | | |
298 | | - | |
| 295 | + | |
299 | 296 | | |
300 | 297 | | |
301 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
302 | 313 | | |
303 | 314 | | |
304 | 315 | | |
| |||
312 | 323 | | |
313 | 324 | | |
314 | 325 | | |
315 | | - | |
| 326 | + | |
316 | 327 | | |
317 | 328 | | |
318 | 329 | | |
319 | 330 | | |
320 | 331 | | |
321 | | - | |
| 332 | + | |
322 | 333 | | |
323 | 334 | | |
324 | 335 | | |
325 | | - | |
| 336 | + | |
326 | 337 | | |
327 | 338 | | |
328 | 339 | | |
| |||
332 | 343 | | |
333 | 344 | | |
334 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
335 | 354 | | |
336 | 355 | | |
337 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
103 | 101 | | |
104 | 102 | | |
105 | | - | |
| 103 | + | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
111 | | - | |
| 109 | + | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
116 | | - | |
| 114 | + | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
| |||
130 | 142 | | |
131 | 143 | | |
132 | 144 | | |
133 | | - | |
| 145 | + | |
134 | 146 | | |
135 | | - | |
| 147 | + | |
136 | 148 | | |
137 | 149 | | |
138 | 150 | | |
| |||
142 | 154 | | |
143 | 155 | | |
144 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
145 | 165 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | | - | |
| 87 | + | |
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
95 | | - | |
| 93 | + | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
100 | | - | |
| 98 | + | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| |||
114 | 126 | | |
115 | 127 | | |
116 | 128 | | |
117 | | - | |
| 129 | + | |
118 | 130 | | |
119 | | - | |
| 131 | + | |
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
| |||
126 | 138 | | |
127 | 139 | | |
128 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
129 | 149 | | |
0 commit comments