-
Notifications
You must be signed in to change notification settings - Fork 24
59 lines (55 loc) · 1.72 KB
/
test.yml
File metadata and controls
59 lines (55 loc) · 1.72 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
name: build
on: [push, pull_request]
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: all
test:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest, windows-latest ]
exclude:
- { os: windows-latest , ruby: head }
- { os: windows-latest , ruby: truffleruby }
- { os: windows-latest , ruby: truffleruby-head }
# io/console warnings make CI fail
- { os: macos-latest , ruby: jruby }
- { os: macos-latest , ruby: jruby-head }
# Errno::ESRCH: No such process - File.symlink
- { os: windows-latest , ruby: jruby }
- { os: windows-latest , ruby: jruby-head }
include:
- { os: windows-latest , ruby: mingw }
- { os: windows-latest , ruby: mswin }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
- name: Run test
run: rake compile test
spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- uses: actions/checkout@v6
with:
repository: ruby/spec
path: rubyspec
- name: Clone MSpec
run: git clone https://github.com/ruby/mspec.git ../mspec
- run: bundle install
- run: rake compile
- run: ../mspec/bin/mspec -Ilib rubyspec/library/pathname