name: CI
on: [push, pull_request]
jobs:
  tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - { ruby: 2.5 }
          - { ruby: 2.6 }
          - { ruby: 2.7 }
          - { ruby: 3.0 }
          - { ruby: jruby, allow-failure: true }
          - { ruby: jruby-head, allow-failure: true }
          - { ruby: head, allow-failure: true }

    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: Run tests
        timeout-minutes: 10
        run: bundle exec rake

name: CI
on: [push, pull_request]
jobs:
  tests:
    runs-on: ubuntu-latest
    continue-on-error: ${{ fromJSON(matrix.experimental) }}
    name: ${{ matrix.ruby }}
    strategy:
      matrix:
        experimental: [ false ]
        include:
          - { ruby: 2.5 }
          - { ruby: 2.6 }
          - { ruby: 2.7 }
          - { ruby: "3.0" }
          - { ruby: jruby, experimental: true }
          - { ruby: jruby-head, experimental: true }
          - { ruby: head, experimental: true }

    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: Run tests
        timeout-minutes: 10
        run: bundle exec rake

Use experimental: true to allow failures
CI: Use experimental: true to allow failures

Example taken from https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontinue-on-error
