This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
CI #210
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 | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
test: | |
name: '[Test] Ruby ${{matrix.ruby}} | OS ${{matrix.os}}' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- '3.2' | |
- '3.1' | |
- '3.0' | |
# JRuby skipped for now until rubocop-rspec/-capybara are split up; | |
# @see https://github.com/rubocop/rubocop-rspec/discussions/1440 | |
# - jruby | |
- truffleruby | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
exclude: | |
- os: windows-latest | |
ruby: truffleruby | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- run: bin/rspec | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
bundler-cache: true | |
- run: bin/rubocop |