-
Notifications
You must be signed in to change notification settings - Fork 613
37 lines (33 loc) · 1.03 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0
- uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: gem install minitest -v "5.15.0"
- name: Run test
run: ruby -Ilib exe/rake