Revert "Remove concurrently cancelation of GHA jobs" #16
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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- kiskolabs/add_rails_6.1_and_ruby_3_4 | |
pull_request: | |
branches: | |
- kiskolabs/add_rails_6.1_and_ruby_3_4 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['2.6', '2.7', '3.0', '3.4'] | |
gemfile: | |
- Gemfile | |
- Gemfile.rails-5.0.x | |
- Gemfile.rails-5.1.x | |
- Gemfile.rails-6.0.x | |
- Gemfile.rails-6.1.x | |
exclude: | |
- ruby: 3.0 | |
gemfile: Gemfile.rails-5.0.x | |
- ruby: 3.0 | |
gemfile: Gemfile.rails-5.1.x | |
- ruby: 3.4 | |
gemfile: Gemfile.rails-5.0.x | |
- ruby: 3.4 | |
gemfile: Gemfile.rails-5.1.x | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: false | |
- name: Print Ruby version | |
run: ruby -v | |
- name: Print Bundler version | |
run: bundle -v | |
- name: Install bundler | |
run: gem install bundler -v '~> 2.4.22' | |
- name: Print Bundler version | |
run: bundle -v | |
- name: Bundle install | |
run: bundle install | |
- name: Run tests | |
env: | |
RAILS_ENV: test | |
run: | | |
bundle exec rspec |