Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using yml for generated yaml files #1246

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
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