.github/workflows/rake.yml in relation-0.3.8 vs .github/workflows/rake.yml in relation-0.4.2
- old
+ new
@@ -1,24 +1,26 @@
+# see also https://github.com/whitequark/parser/blob/master/.github/workflows/test.yml
name: Rake
-#on: [push, pull_request]
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
-# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
- # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
-# ruby: [2.5, 2.6, 2.7, '3.0', head, jruby, jruby-head, truffleruby, truffleruby-head]
- ruby: [2.7]
+ ruby: ["2.7", "3.0", "3.2", head]
+ test_command: ["bundle exec rake"]
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- - run: bundle exec rake
+ - name: Bundle install
+ run: |
+ bundle config path /home/runner/bundle
+ bundle install
+ bundle update
+ - run: ${{ matrix.test_command }}