Fix test setup, minor fixes #584
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 (libev) | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
ruby: ['3.1', '3.2', 'head'] | |
name: >- | |
${{matrix.os}}, ${{matrix.ruby}} | |
runs-on: ${{matrix.os}} | |
env: | |
POLYPHONY_LIBEV: "1" | |
steps: | |
- name: Setup machine | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true # 'bundle install' and cache | |
cache-version: 2 | |
- name: Kernel version | |
run: uname -a | |
- name: Compile C-extension | |
run: bundle exec rake compile | |
- name: Run tests | |
run: bundle exec rake test |