writeAWJSONRaw creates .github/workflows/aw.json with raw (possibly invalid) content.
(t *testing.T, gitRoot, content string)
| 376 | |
| 377 | // writeAWJSONRaw creates .github/workflows/aw.json with raw (possibly invalid) content. |
| 378 | func writeAWJSONRaw(t *testing.T, gitRoot, content string) { |
| 379 | t.Helper() |
| 380 | dir := filepath.Join(gitRoot, ".github", "workflows") |
| 381 | require.NoError(t, os.MkdirAll(dir, 0o755), "failed to create workflows dir") |
| 382 | require.NoError(t, os.WriteFile(filepath.Join(dir, "aw.json"), []byte(content), 0o600), "failed to write aw.json") |
| 383 | } |
no outgoing calls
no test coverage detected