Skip to content

Commit 78d48a9

Browse files
committed
Run generator tests only when generators were changed
1 parent 3a3cf8e commit 78d48a9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/generators.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
ruby-version: ${{ matrix.ruby }}
4646
bundler-cache: true
4747

48+
- name: Run generator tests
49+
run: bundle exec rspec --tag type:generator
50+
env:
51+
RAILS_VERSION: ${{ matrix.rails }}
52+
4853
- name: Set up Node
4954
uses: actions/setup-node@v4
5055
with:

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ jobs:
5959
RAILS_VERSION: ${{ matrix.rails }}
6060

6161
- name: Run tests
62-
run: bundle exec rspec
62+
run: bundle exec rspec --tag ~type:generator
6363
env:
6464
RAILS_VERSION: ${{ matrix.rails }}

0 commit comments

Comments
 (0)