Skip to content

Merge pull request #557 from ruby/dependabot/github_actions/actions/c… #472

Merge pull request #557 from ruby/dependabot/github_actions/actions/c…

Merge pull request #557 from ruby/dependabot/github_actions/actions/c… #472

Workflow file for this run

name: test
on: [push, pull_request]
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 2.3
engine: cruby-jruby
versions: '["truffleruby"]'
test:
needs: ruby-versions
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
- os: windows-latest
ruby: truffleruby
- os: windows-latest
ruby: jruby-head
- os: windows-latest
ruby: jruby
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3.3.0
- uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: gem install test-unit
- name: Run test
run: ruby -Ilib exe/rake