sshaw/ruby-jing

View on GitHub
.github/workflows/rake.yml

Summary

Maintainability
Test Coverage
name: rake

on:
  push:
    branches: [ master ]
    tags: [ v* ]
  pull_request:

jobs:
  rake:
    name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      fail-fast: false
      matrix:
        ruby: [ '3.1', '3.0', '2.7', '2.6', '2.5', '2.4' ]
        os: [ ubuntu-latest, windows-latest, macos-latest ]
        experimental: [ false ]
        include:
          - ruby: head
            os: ubuntu-latest
            experimental: true
          - ruby: head
            os: windows-latest
            experimental: true
          - ruby: head
            os: macos-latest
            experimental: true
    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - run: bundle exec rake