-
Notifications
You must be signed in to change notification settings - Fork 7
105 lines (101 loc) · 3.25 KB
/
build.yml
File metadata and controls
105 lines (101 loc) · 3.25 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
name: build
on:
push:
branches:
- master
- "*-stable"
- "*/ci-check"
pull_request: {}
jobs:
rake:
name: ${{ matrix.combo.name || matrix.combo.ruby }}
strategy:
fail-fast: false
matrix:
combo:
- name: mspec-nodejs
ruby: '3.0'
command: bin/rake mspec_nodejs
- name: mspec-chrome
ruby: '3.0'
command: bin/rake mspec_chrome
- name: minitest
ruby: '3.0'
command: bin/rake minitest
- name: minitest-strict-mode
ruby: '3.0'
command: bin/rake minitest
strict: 'true'
- name: head-ruby
ruby: head
permissive: true
- name: current-ruby
ruby: 3.1
- name: previous-ruby
ruby: '3.0'
- name: older-ruby
ruby: 2.7
- name: near-eol-ruby
ruby: 2.6
- name: smoke-test
ruby: '3.0'
command: bin/rake smoke_test
- name: windows
# These two fail because of broken stacktraces on windows: minitest_node_nodejs mspec_nodejs
command: bundle exec rake rspec minitest_nodejs
ruby: '3.0'
os: windows-latest
- name: lint
command: bin/rake lint
ruby: '3.0'
- name: timezone
ruby: '3.0'
- name: performance
ruby: '3.0'
permissive: true
fetchdepth: '0'
command: bin/rake performance:compare
os: ryzen
# Currently failing:
# - ruby: truffleruby
# - ruby: jruby
runs-on: ${{ matrix.combo.os || 'ubuntu-latest' }}
continue-on-error: ${{ matrix.combo.permissive || false }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: ${{ fromJSON(matrix.combo.fetchdepth || '1') }}
- if: ${{ matrix.combo.os != 'ryzen' }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.combo.ruby }}
bundler-cache: false
- run: ruby bin/git-submodule-fast-install
- run: bundle lock
- uses: actions/cache@v2
with:
path: ./vendor/bundle
key: ${{ runner.os }}-${{ matrix.combo.ruby }}-gem-${{ github.ref }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.combo.ruby }}-gem-${{ github.ref }}
${{ runner.os }}-${{ matrix.combo.ruby }}-gem-master
${{ runner.os }}-${{ matrix.combo.ruby }}-gem-
- uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-npm-${{ github.ref }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-npm-${{ github.ref }}
${{ runner.os }}-npm-master
${{ runner.os }}-npm-
- run: yarn install
- name: bundle install
run: |
bundle config path $PWD/vendor/bundle
bundle install --jobs 4 --retry 3
bundle clean
- name: set environment variables
if: ${{ matrix.combo.strict == 'true' }}
run: |
echo "USE_STRICT=true" >> $GITHUB_ENV
- run: ${{ matrix.combo.command || 'bin/rake rspec' }}