Skip to content

Commit

Permalink
Switch to using yml for generated yaml files
Browse files Browse the repository at this point in the history
See: #1243
  • Loading branch information
nickcharlton committed Jan 31, 2025
1 parent a4a4af0 commit 5211c6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/generators/suspenders/ci_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CiGenerator < Rails::Generators::Base

def ci_files
empty_directory ".github/workflows"
template "ci.yml", ".github/workflows/ci.yaml"
template "ci.yml", ".github/workflows/ci.yml"
template "dependabot.yml", ".github/dependabot.yaml"
end

Expand Down
4 changes: 2 additions & 2 deletions test/generators/suspenders/ci_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CiGeneratorTest < Rails::Generators::TestCase
with_database "postgresql" do
run_generator

assert_file app_root(".github/workflows/ci.yaml")
assert_file app_root(".github/workflows/ci.yml")
assert_file app_root(".github/dependabot.yaml")
end
end
Expand All @@ -24,7 +24,7 @@ class CiGeneratorTest < Rails::Generators::TestCase
assert_raises Suspenders::Generators::DatabaseUnsupported::Error, match: "This generator requires PostgreSQL" do
run_generator

assert_no_file app_root(".github/workflows/ci.yaml")
assert_no_file app_root(".github/workflows/ci.yml")
assert_no_file app_root(".github/dependabot.yaml")
end
end
Expand Down

0 comments on commit 5211c6e

Please sign in to comment.