-
Notifications
You must be signed in to change notification settings - Fork 36
68 lines (66 loc) · 1.68 KB
/
test.yml
File metadata and controls
68 lines (66 loc) · 1.68 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Test
on:
- push
- pull_request
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby-jruby
min_version: 2.5
inplace:
needs: ruby-versions
name: ${{ matrix.ruby-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
- runs-on: macos-latest
ruby-version: "2.5"
# include:
# - runs-on: ubuntu-latest
# ruby-version: truffleruby
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Test
run: bundle exec rake test
gem:
name: ${{ matrix.ruby-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest
ruby-version:
- "3.0"
- head
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install as gem
run: |
rake install
- name: Install test dependencies
run: |
gem install test-unit
- name: Test
run: |
ruby -run -e mkdir -- tmp
ruby -run -e cp -- -p -r test tmp
cd tmp
ruby test/run-test.rb