summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 376c068..fc48721 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,5 +1,8 @@
name: CI
on: [push, pull_request]
+permissions:
+ contents: read
+
jobs:
system-libffi:
# Run on latest MRI with explicit selection of system or builtin libffi
@@ -29,7 +32,7 @@ jobs:
env:
# work around misconfiguration of libffi on MacOS with homebrew
PKG_CONFIG_PATH: ${{ env.PKG_CONFIG_PATH }}:/usr/local/opt/libffi/lib/pkgconfig
- - run: bundle exec rake test
+ - run: bundle exec rake test FFI_TEST_GC=true
- run: bundle exec rake types_conf && git --no-pager diff
specs:
@@ -39,12 +42,10 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu, macos, windows ]
- ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, ruby-head, truffleruby-head, jruby-head ]
+ ruby: [ 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, truffleruby-head, jruby-head ]
exclude:
- os: windows
ruby: truffleruby-head
- - os: windows
- ruby: 2.3 # compilation fails
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
@@ -59,8 +60,7 @@ jobs:
- run: bundle exec rake libffi
- run: bundle exec rake compile
- - run: bundle exec rake test
- continue-on-error: ${{ matrix.ruby == 'jruby-head' }}
+ - run: bundle exec rake test FFI_TEST_GC=true
- run: bundle exec rake bench:all
if: ${{ matrix.ruby != 'truffleruby-head' && matrix.ruby != 'jruby-head' }}