CI: configure bash as default shell #2127
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
- "*-stable" | |
pull_request: | |
branches: | |
- master | |
- "*-stable" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
ci: | |
name: "Run Tests (${{ matrix.label }})" | |
runs-on: "ubuntu-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- label: Ruby 2.7 | |
ruby_version: "2.7" | |
- label: Ruby 3.0 | |
ruby_version: "3.0" | |
- label: Ruby 3.1 | |
ruby_version: "3.1" | |
- label: Ruby 3.2 | |
ruby_version: "3.2" | |
- label: JRuby 9.4.0.0 | |
ruby_version: "jruby-9.4.0.0" | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: "Set up ${{ matrix.label }}" | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
bundler-cache: true | |
- name: Run Minitest based tests | |
run: script/test | |
- name: Run Cucumber based tests | |
run: script/cucumber | |
- name: Generate and Build a new site | |
run: script/default-site | |
xtras: | |
name: "${{ matrix.job_name }} (Ruby ${{ matrix.ruby_version }})" | |
runs-on: "ubuntu-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- job_name: "Profile Docs Site" | |
step_name: "Build and Profile docs site" | |
script_file: "profile-docs" | |
ruby_version: "2.7" | |
- job_name: "Style Check" | |
step_name: "Run RuboCop" | |
script_file: "fmt" | |
ruby_version: "2.7" | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: "Set up Ruby ${{ matrix.ruby_version }}" | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
bundler-cache: true | |
- name: ${{ matrix.step_name }} | |
run: script/${{ matrix.script_file }} |