forked from ruby-next/ruby-next
-
Notifications
You must be signed in to change notification settings - Fork 0
107 lines (104 loc) · 2.71 KB
/
ruby-eol-test.yml
File metadata and controls
107 lines (104 loc) · 2.71 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Build EOL
on:
push:
branches:
- master
pull_request:
jobs:
transpile:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler: 2.2.15
bundler-cache: true
- name: Transpile Ruby Next
run: |
make transpile
- name: Store transpiled files
uses: actions/upload-artifact@v2
with:
name: ruby-next-transpiled
path: lib/.rbnext
- name: Transpile language specs
run: |
make transpile-language-specs
- name: Transpile Ruby 2.0 fixtures
uses: actions/upload-artifact@v2
with:
name: language-specs-transpiled
path: spec/language/ruby20/.rbnext
if-no-files-found: ignore
ruby-test:
needs: transpile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.2, 2.3, 2.4]
env:
CORE_EXT: backports
RUBY_NEXT_CORE_STRATEGY: backports
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
BUNDLE_GEMFILE: "gemfiles/eol.gemfile"
CI: true
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 1.17
bundler-cache: true
- name: Restore transpiled files
uses: actions/download-artifact@v2
with:
name: ruby-next-transpiled
path: lib/.rbnext
- name: Download MSpec
run: |
git clone --branch v1.7.0 https://github.com/ruby/mspec.git mspec
- name: Run MSpec
run: |
bundle install --jobs 4 --retry 3
bundle exec mspec/bin/mspec
env:
PRYRC: "spec/integration/fixtures/pry/.pryrc"
- name: Run language specs with AST mode
env:
RUBY_NEXT_TRANSPILE_MODE: "ast"
run: bundle exec mspec/bin/mspec :language
ruby-20-test:
needs: transpile
timeout-minutes: 5
runs-on: ubuntu-latest
container:
image: ruby:2.0
steps:
- uses: actions/checkout@v2
- name: Restore transpiled files
uses: actions/download-artifact@v2
with:
name: ruby-next-transpiled
path: lib/.rbnext
- name: Restore transpiled specs
uses: actions/download-artifact@v2
with:
name: language-specs-transpiled
path: spec/language/ruby20/.rbnext
- name: Download MSpec
run: |
git clone --branch v1.7.0 https://github.com/ruby/mspec.git mspec
- name: Install backports
run: |
gem install backports
- name: Run language specs for Ruby 2.0
run: |
(cd spec/language/ruby20 && ../../../mspec/bin/mspec *.rb)