Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pkg/workflow/action_sha_checker_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestActionSHAValidationIntegration(t *testing.T) {

// Create a lock file with the same SHAs (up-to-date scenario)
lockFile := filepath.Join(tmpDir, "test.lock.yml")
lockContent := `
lockContent := `# gh-aw-metadata: {"schema_version":"v1"}
name: Test Workflow
on: push
jobs:
Expand All @@ -61,7 +61,7 @@ jobs:

// Create a lock file with outdated SHAs
outdatedLockFile := filepath.Join(tmpDir, "outdated.lock.yml")
outdatedContent := `
outdatedContent := `# gh-aw-metadata: {"schema_version":"v1"}
name: Test Workflow
on: push
jobs:
Expand Down Expand Up @@ -92,7 +92,7 @@ func TestActionSHAValidationWithMissingCache(t *testing.T) {

// Create a lock file
lockFile := filepath.Join(tmpDir, "test.lock.yml")
lockContent := `
lockContent := `# gh-aw-metadata: {"schema_version":"v1"}
name: Test Workflow
on: push
jobs:
Expand Down Expand Up @@ -122,7 +122,7 @@ func TestExtractActionsFromRealLockFile(t *testing.T) {
lockFile := filepath.Join(tmpDir, "realistic.lock.yml")

// Create a more realistic lock file with multiple jobs and steps
lockContent := `
lockContent := `# gh-aw-metadata: {"schema_version":"v1"}
# This file was automatically generated by gh-aw
name: CI Workflow
on:
Expand Down Expand Up @@ -200,7 +200,7 @@ func TestValidationMessageFormat(t *testing.T) {
tmpDir := testutil.TempDir(t, "test-*")
lockFile := filepath.Join(tmpDir, "test.lock.yml")

lockContent := `
lockContent := `# gh-aw-metadata: {"schema_version":"v1"}
name: Test
on: push
jobs:
Expand Down Expand Up @@ -232,7 +232,7 @@ func TestActionUsageVersionPopulation(t *testing.T) {
lockFile := filepath.Join(tmpDir, "test.lock.yml")

// Use an action that exists in action_pins.json
lockContent := `
lockContent := `# gh-aw-metadata: {"schema_version":"v1"}
name: Test
on: push
jobs:
Expand Down