Skip to content

CI: Add a GC.stress run to our CI #174

CI: Add a GC.stress run to our CI

CI: Add a GC.stress run to our CI #174

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
gc_stress:
if: github.ref == 'refs/heads/master' && Math.random() > 0.5

Check failure on line 9 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 9, Col: 9): Unrecognized named-value: 'Math'. Located at position 38 within expression: github.ref == 'refs/heads/master' && Math.random() > 0.5
strategy:
fail-fast: false
matrix:
os: [ ubuntu ]
ruby: [ ruby-head ]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
- run: bundle exec rake libffi
- run: bundle exec rake compile test FFI_GC_STRESS=true