simplecov-ruby/simplecov

View on GitHub
.github/workflows/unstable.yml

Summary

Maintainability
Test Coverage
name: unstable

on:
  schedule:
    - cron: '0 0 * * *'

jobs:
  tests:
    runs-on: ubuntu-latest
    env:
      BUNDLE_WITHOUT: "benchmark"
      JRUBY_OPTS: "--debug"
    strategy:
      fail-fast: false

      matrix:
        ruby-version:
          - ruby-head
          - jruby-head
          - truffleruby-head

    steps:
      - uses: actions/checkout@v4

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

      - name: Run tests
        run: bundle exec rake test
        if: matrix.ruby-version != 'truffleruby-head'

      # Run only `rake spec` on truffleruby, because just `rake` runs cucumber
      # which fails because it uses an old childprocess which depends on fork.
      - name: Run specs (truffleruby)
        run: bundle exec rake spec
        if: matrix.ruby-version == 'truffleruby-head'