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@v3 - 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@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: '3.0' bundler-cache: true - run: bin/rubocop