Skip to content

⬆️ Bump step-security/harden-runner from 2.20.0 to 2.21.0 (#731) #3553

⬆️ Bump step-security/harden-runner from 2.20.0 to 2.21.0 (#731)

⬆️ Bump step-security/harden-runner from 2.20.0 to 2.21.0 (#731) #3553

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 3.2
build:
needs: ruby-versions
permissions:
contents: read
checks: write
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest, windows-latest ]
experimental: [false]
include:
- { ruby: truffleruby, os: ubuntu-latest, experimental: true }
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
rubygems: 3.5.14
- name: Run test
run: bundle exec rake test
timeout-minutes: 5 # _should_ finish in under a minute
- name: Report coverage
if: ${{ matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' &&
!startsWith(matrix.ruby, 'truffleruby') && !startsWith(matrix.ruby, 'jruby') }}
run: bundle exec rake test:coverage:report
timeout-minutes: 1 # _should_ finish in under a second
continue-on-error: ${{ matrix.os != 'ubuntu-latest' || matrix.ruby != '4.0' }}