Nokogiri #3
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 | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["2.5", "2.7", "3.0", "3.1", "3.2"] | |
gemfile: | |
- rails_5_2 | |
- rails_6 | |
- rails_6_1 | |
- rails_7 | |
- rails_7_1 | |
exclude: | |
- ruby: "3.2" | |
gemfile: "rails_6" | |
- ruby: "3.2" | |
gemfile: "rails_5_2" | |
- ruby: "3.1" | |
gemfile: "rails_6" | |
- ruby: "3.1" | |
gemfile: "rails_5_2" | |
- ruby: "3.0" | |
gemfile: "rails_6" | |
- ruby: "3.0" | |
gemfile: "rails_5_2" | |
- ruby: "2.7" | |
gemfile: "rails_5_2" | |
- ruby: "2.5" | |
gemfile: "rails_7_1" | |
- ruby: "2.5" | |
gemfile: "rails_7" | |
runs-on: ubuntu-22.04 | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | |
BUNDLE_PATH_RELATIVE_TO_CWD: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Add or replace dependency steps here | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
# Add or replace test runners here | |
- name: Run tests | |
run: bin/rake test |