Skip to content

Merge pull request #769 from ruby/dependabot/github_actions/ruby/setu… #1106

Merge pull request #769 from ruby/dependabot/github_actions/ruby/setu…

Merge pull request #769 from ruby/dependabot/github_actions/ruby/setu… #1106

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
versions: '["truffleruby", "jruby"]'
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: macos-latest
ruby: 2.3
- os: macos-latest
ruby: 2.4
- os: macos-latest
ruby: 2.5
- os: windows-latest
ruby: 2.3
- os: windows-latest
ruby: truffleruby
- os: windows-latest
ruby: jruby
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ruby/setup-ruby@14594264cd68ce8a2345dd349bc3d138a4ef85c8 # v1.327.0
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: gem install test-unit
- name: Run test
run: ruby -Ilib exe/rake