Skip to content

Commit

Permalink
Add zeitwerk check to CI
Browse files Browse the repository at this point in the history
This will check if the application is complying with zeitwerk conventions.
https://guides.rubyonrails.org/classic_to_zeitwerk_howto.html
  • Loading branch information
binos30 committed Jul 27, 2024
1 parent a0c66cc commit 6cc3ffa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

env:
CI: true

jobs:
scan_ruby:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -109,6 +112,9 @@ jobs:
- name: Run Syntax Tree
run: yarn stree-ci

- name: Run zeitwerk check
run: bin/rails zeitwerk:check

test:
runs-on: ubuntu-latest
needs: [scan_ruby, lint]
Expand Down

0 comments on commit 6cc3ffa

Please sign in to comment.