.github/workflows/test.yml in yabeda-prometheus-mmap-0.3.0 vs .github/workflows/test.yml in yabeda-prometheus-mmap-0.4.0
- old
+ new
@@ -15,33 +15,17 @@
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- - ruby: 3.0
- - ruby: 2.7
- - ruby: 2.6
- - ruby: 2.5
- container:
- image: ruby:${{ matrix.ruby }}
- env:
- CI: true
+ - ruby: "3.2"
+ - ruby: "3.1"
+ - ruby: "3.0"
+ - ruby: "2.7"
steps:
- - uses: actions/checkout@v2
- - uses: actions/cache@v2
+ - uses: actions/checkout@v3
+ - uses: ruby/setup-ruby@v1
with:
- path: vendor/bundle
- key: bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
- restore-keys: |
- bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
- bundle-${{ matrix.ruby }}-
- - name: Upgrade Bundler to 2.0 (for older Rubies)
- run: gem install bundler -v '~> 2.0'
- - name: Bundle install
- run: |
- bundle config path vendor/bundle
- bundle install
- bundle update
- - name: Run Rubocop
- run: bundle exec rubocop
+ ruby-version: ${{ matrix.ruby }}
+ bundler-cache: true
- name: Run RSpec
run: bundle exec rspec