.github/workflows/release.yaml in regio-0.3.3 vs .github/workflows/release.yaml in regio-0.3.4
- old
+ new
@@ -1,12 +1,57 @@
name: Release
on:
release:
types: [ released ]
jobs:
+ rubocop:
+ name: RuboCop
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 3.1.3
+ bundler-cache: true
+ - name: Check with RuboCop
+ run: bundle exec rubocop
+ rspec-legacy:
+ name: RSpec with legacy ruby ${{matrix.ruby}}
+ runs-on: ubuntu-latest
+ env:
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/ruby_${{matrix.ruby}}.gemfile
+ strategy:
+ fail-fast: false
+ matrix:
+ ruby: ['2.4', '2.5', '2.6']
+ steps:
+ - uses: actions/checkout@v3
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{matrix.ruby}}
+ bundler-cache: true
+ - name: Test with RSpec
+ run: bundle exec rspec
+ rspec:
+ name: RSpec with ruby ${{matrix.ruby}}
+ runs-on: ubuntu-latest
+ needs: rubocop
+ strategy:
+ fail-fast: false
+ matrix:
+ ruby: ['2.6', '2.7', '3.0', '3.1', head]
+ steps:
+ - uses: actions/checkout@v3
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{matrix.ruby}}
+ bundler-cache: true
+ - name: Test with RSpec
+ run: bundle exec rspec
build-and-push:
name: Build and push gem
runs-on: ubuntu-latest
+ needs: rspec
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.3