name: Tests on: [push, pull_request] jobs: build: strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-10.15] ruby: [2.7, 3.0, 3.1, truffleruby] name: >- ${{matrix.os}}, ${{matrix.ruby}} runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v1 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{matrix.ruby}} bundler-cache: true # 'bundle install' and cache - name: Compile C-extension run: bundle exec rake compile - name: Run tests run: bundle exec rake test