Ruby - Rails Gems Spec Workflow #5
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: Ruby - Rails Gems Spec Workflow | |
on: | |
workflow_call: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
ruby: [3.1, 3.2, 3.3, head, truffleruby, truffleruby-head] | |
rails: ['~> 6.1.0', '~> 7.0.0', '>= 0'] | |
runs-on: ${{ matrix.os }} | |
env: | |
CI_RAILS_VERSION: ${{ matrix.rails }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: bundle exec rspec |