Fix test setup, minor fixes #178
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests (io_uring) | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
ruby: ['3.1', '3.2', 'head'] | |
name: >- | |
${{matrix.os}}, ${{matrix.ruby}} | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true # 'bundle install' and cache | |
- name: Install dependencies | |
run: | | |
gem install bundler | |
bundle install | |
- name: Show Linux kernel version | |
run: uname -a | |
- name: Compile C-extension | |
run: bundle exec rake compile | |
- name: Run tests | |
run: bundle exec ruby test/run.rb |