Skip to content

Commit

Permalink
Merge pull request #117 from yui-knk/check_parser_rb_is_up_to_date
Browse files Browse the repository at this point in the history
Check parser.rb is is up to date in check-misc job
  • Loading branch information
yui-knk authored Oct 14, 2023
2 parents 34efabe + 65f8bbd commit 6a76a2d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,27 @@ jobs:
- run: bundle exec rspec
check-misc:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby: ['head']
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle install

# Copy from https://github.com/ruby/ruby/blob/089227e94823542acfdafa68541d330eee42ffea/.github/workflows/check_misc.yml#L27
- name: Check for trailing spaces
run: |
git grep -I -n '[ ]$' -- '*.rb' '*.[chy]' '*.rs' ':!spec/' && exit 1 || :
git grep -n '^[ ][ ]*$' -- '*.md' && exit 1 || :
- name: Check for parser.rb is up to date
run: |
bundle exec rake build:racc_parser
git diff --color --no-ext-diff --ignore-submodules --exit-code lib/lrama/new_parser.rb
steep-check:
runs-on: ubuntu-20.04
strategy:
Expand Down

0 comments on commit 6a76a2d

Please sign in to comment.