Skip to content
Open
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
30 changes: 23 additions & 7 deletions variants/github_actions_ci/workflows/ci.yml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ jobs:
- run: <%= package_json.manager.native_run_command("format-check").join(" ") %>
- run: <%= package_json.manager.native_run_command("test", ["--coverage"]).join(" ") %>
ruby_based_checks:
permissions:
contents: read
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Ruby (version given by .ruby-version)
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec chusaku --verbose --exit-with-error-on-annotation
- run: bundle exec rubocop
- run: bundle exec erb_lint .
- run: bundle exec brakeman --run-all-checks .
ruby_based_tests:
permissions:
contents: read
runs-on: ubuntu-latest
Expand Down Expand Up @@ -99,14 +117,8 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Check Run Ruby model annotations
run: bundle exec annotaterb models --frozen
- name: Check Ruby controller annotations
run: bundle exec chusaku --verbose --exit-with-error-on-annotation
- run: bundle exec rubocop
- run: bundle exec erb_lint .
- run: bundle exec brakeman --run-all-checks .
- run: bundle exec rails db:setup
- run: bundle exec annotaterb models --frozen
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
Expand Down Expand Up @@ -141,6 +153,7 @@ jobs:
# needs:
# - audit_dependencies
# - ruby_based_checks
# - ruby_based_tests
# - js_based_checks
# uses: ./.github/workflows/deploy_to_ec2.yml
# with:
Expand All @@ -159,6 +172,7 @@ jobs:
# needs:
# - audit_dependencies
# - ruby_based_checks
# - ruby_based_tests
# - js_based_checks
# uses: ./.github/workflows/deploy_to_ec2.yml
# with:
Expand All @@ -181,6 +195,7 @@ jobs:
# needs:
# - audit_dependencies
# - ruby_based_checks
# - ruby_based_tests
# - js_based_checks
# uses: ./.github/workflows/deploy_to_heroku.yml
# with:
Expand All @@ -198,6 +213,7 @@ jobs:
# needs:
# - audit_dependencies
# - ruby_based_checks
# - ruby_based_tests
# - js_based_checks
# uses: ./.github/workflows/deploy_to_heroku.yml
# with:
Expand Down
Loading