.github/workflows/test.yaml in lrama-0.5.6 vs .github/workflows/test.yaml in lrama-0.5.7

- old
+ new

@@ -36,17 +36,31 @@ bundler-cache: true - run: bundle install - 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' && exit 1 || : + 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/parser.rb steep-check: runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: @@ -63,10 +77,12 @@ test-ruby: runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: - baseruby: ['3.0'] + # '3.0' is the oldest living ruby version + # '2.5' is for BASERUBY + baseruby: ['head', '3.0', '2.5'] ruby_branch: ['master'] defaults: run: working-directory: ../ruby/build steps: