chore: bumped actions/checkout to v4 #41
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: ci | |
on: [push, pull_request] | |
jobs: | |
test: | |
if: github.actor != 'dependabot[bot]' && github.event_name == 'push' || | |
github.event_name == 'pull_request' | |
strategy: | |
matrix: | |
rails: ["6.1", "7.0", "7.1", "master"] | |
ruby: ["3.0", "3.1", "3.2"] | |
exclude: | |
- rails: "7.1" | |
ruby: "3.1" | |
- rails: "7.0" | |
ruby: "3.1" | |
- rails: "6.0" | |
ruby: "3.0" | |
- rails: "6.0" | |
ruby: "3.1" | |
- rails: "6.0" | |
ruby: "3.2" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install toolchain | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
build-essential \ | |
libsqlite3-dev | |
- name: Install bundler | |
run: gem install bundler | |
- env: | |
RAILS_VERSION: ${{ matrix.rails }} | |
name: Install dependencies | |
run: bundle install | |
- env: | |
RAILS_VERSION: ${{ matrix.rails }} | |
name: Test | |
run: bundle exec rspec |