Skip to content

Commit

Permalink
Add rbs-inline command to CI workflow and check for uncommitted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Dec 27, 2024
1 parent fab9f70 commit fa4d191
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,15 @@ jobs:
bundler-cache: true
- run: bundle install
- run: bundle exec rbs collection install
- run: bundle exec rbs-inline --output lib/
- name: Check for uncommitted changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Uncommitted changes detected after running rbs-inline."
echo "Please run 'bundle rake rbs_inline' and commit the changes generated by rbs-inline." >&2
exit 1
fi
shell: bash
- run: bundle exec steep check
test-ruby:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit fa4d191

Please sign in to comment.