Improve CI Reliability of Generator Specs #726
Workflow file for this run
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: Generator specs | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
concurrency: | |
# Pushing new changes to a branch will cancel any in-progress CI runs | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Generator specs | |
runs-on: ${{ matrix.os }} | |
# Generator specs suffer from random failures probably because of the huge | |
# number of network requests to the node registry | |
# Setting `continue-on-error: true` will allow the current combination to | |
# fail without stopping other matrix combinations from running | |
continue-on-error: true | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4'] | |
gemfile: | |
- gemfiles/Gemfile-rails.6.0.x | |
- gemfiles/Gemfile-rails.6.1.x | |
- gemfiles/Gemfile-rails.7.0.x | |
- gemfiles/Gemfile-rails.7.1.x | |
- gemfiles/Gemfile-rails.7.2.x | |
- gemfiles/Gemfile-rails.8.0.x | |
# Uncomment the following line only to ensure compatibility with the | |
# upcomming Rails versions, maybe before a release. | |
#- gemfiles/Gemfile-rails-edge | |
exclude: | |
- ruby: '2.7' | |
gemfile: gemfiles/Gemfile-rails.7.2.x | |
- ruby: '2.7' | |
gemfile: gemfiles/Gemfile-rails.8.0.x | |
- ruby: '3.0' | |
gemfile: gemfiles/Gemfile-rails.7.2.x | |
- ruby: '3.0' | |
gemfile: gemfiles/Gemfile-rails.8.0.x | |
- ruby: '3.1' | |
gemfile: gemfiles/Gemfile-rails.6.0.x | |
- ruby: '3.1' | |
gemfile: gemfiles/Gemfile-rails.8.0.x | |
- ruby: '3.2' | |
gemfile: gemfiles/Gemfile-rails.6.0.x | |
- ruby: '3.3' | |
gemfile: gemfiles/Gemfile-rails.6.0.x | |
- ruby: '3.3' | |
gemfile: gemfiles/Gemfile-rails.6.1.x | |
- ruby: '3.4' | |
gemfile: gemfiles/Gemfile-rails.6.0.x | |
- ruby: '3.4' | |
gemfile: gemfiles/Gemfile-rails.6.1.x | |
- ruby: '3.4' | |
gemfile: gemfiles/Gemfile-rails.7.0.x | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
rubygems: latest | |
bundler-cache: true | |
- run: bundle exec rake run_spec:generator |