-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (77 loc) · 2.16 KB
/
tests.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
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
name: Tests
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu]
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', head, jruby, jruby-head, truffleruby, truffleruby-head]
include:
- os: macos
ruby: '3.0'
- os: windows
ruby: '3.0'
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.os == 'windows' || matrix.ruby == 'truffleruby' }}
steps:
- name: Checkout zip-container code
uses: actions/checkout@v3
- name: Install and set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the tests
env:
RUBYOPT: -v
JRUBY_OPTS: --debug
run: bundle exec rake
- name: Coveralls
if: matrix.os == 'ubuntu' && !endsWith(matrix.ruby, 'head')
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: ${{ matrix.ruby }}
parallel: true
test-isolated:
runs-on: ubuntu-latest
steps:
- name: Checkout zip-container code
uses: actions/checkout@v3
- name: Install and set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Run isolated tests
run: bundle exec rake test:isolated
test-yjit:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
ruby: ['3.1', '3.2', '3.3', head]
runs-on: ${{ matrix.os }}-latest
continue-on-error: true
steps:
- name: Checkout zip-container code
uses: actions/checkout@v3
- name: Install and set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the tests
env:
RUBYOPT: --enable-yjit -v
run: bundle exec rake
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true