Drop support for Ruby 2.7 and 3.0 #2015
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- '*-stable' | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gemfile: | |
- Gemfile | |
ruby: | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
name: "Tests: Ruby ${{ matrix.ruby }} ${{ matrix.gemfile }}" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Deletes Gemfile.lock | |
run: rm Gemfile.lock | |
- name: Set up Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run tests | |
run: bin/rake test | |
loading-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gemfile: | |
- Gemfile | |
ruby: | |
- "3.1" | |
- "3.2" | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
name: "Loading Tests: Ruby ${{ matrix.ruby }} ${{ matrix.gemfile }}" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Delete Gemfile.lock | |
run: rm Gemfile.lock | |
- name: Set up Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run tests | |
run: bin/rake test:loading | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
bundler-cache: true | |
- name: Run style checks | |
run: bin/rubocop | |
static_type_checking: | |
runs-on: ubuntu-latest | |
name: Type Checking | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
# bundler-cache: true | |
- name: Run static type checks | |
run: | | |
bundle install --jobs 4 --retry 3 | |
bin/srb tc | |
buildall: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
name: Build (matrix) | |
needs: [lint, tests, static_type_checking] | |
steps: | |
- name: Check build matrix status | |
if: ${{ needs.tests.result != 'success' || needs.lint.result != 'success' || needs.static_type_checking.result != 'success' }} | |
run: exit 1 |