Remove actions/cache@v4 from GithubActions #55
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: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
schedule: | |
- cron: '0 4 1 * *' | |
jobs: | |
rspec: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- '3.3' | |
- '3.2' | |
- '3.1' | |
- '3.0' | |
- 'head' | |
rails: | |
- rails_7.1.0 | |
- rails_7.0.8 | |
- rails_6.1.7 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Bundle | |
env: | |
RAILS_VERSION: ${{ matrix.rails }} | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: RSpec & publish code coverage | |
uses: paambaati/codeclimate-action@v8.0.0 | |
env: | |
RAILS_VERSION: ${{ matrix.rails }} | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: bin/rake |