Update supported version of ruby and rails #178
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
- labeled | |
- unlabeled | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- id: read-version | |
run: | | |
echo "::set-output name=VERSION::`cat lib/ice_cube/version.rb | grep -i version | awk '{ print $3 }' | sed -e 's/\"//g'`" | |
- uses: dangoslen/[email protected] | |
with: | |
skipLabels: 'skip-changelog' | |
expectedLatestVersion: ${{ steps.read-version.outputs.VERSION }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1' | |
bundler-cache: true | |
- run: bundle exec standardrb | |
test: | |
needs: | |
- changelog | |
- lint | |
strategy: | |
matrix: | |
rails: ['6.1', '7.0', '7.1'] | |
ruby: ['3.1', '3.2', '3.3'] | |
runs-on: ubuntu-latest | |
env: | |
RAILS_VERSION: ${{ matrix.rails }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- run: bundle exec rake |