Merge pull request #35 from olleolleolle/patch-1 #21
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: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Ruby ${{ matrix.ruby }} (${{ matrix.os }}) | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
strategy: | |
matrix: | |
ruby: | |
- '3.3' | |
- '3.2' | |
- '3.1' | |
- '3.0' | |
- jruby | |
- truffleruby | |
os: | |
- ubuntu-latest | |
- macos-latest | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake | |
test-windows: | |
name: Ruby ${{ matrix.ruby }} (windows-latest) | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
strategy: | |
matrix: | |
ruby: | |
- '3.3' | |
- '3.2' | |
- '3.1' | |
- '3.0' | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Choco help / Install ansicon | |
uses: crazy-max/ghaction-chocolatey@v3 | |
with: | |
args: install ansicon | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake |