-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.45 KB
/
ci.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
name: Ruby specs
on: [push, pull_request]
jobs:
test:
name: tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
ruby: ['2.6', '2.7', '3.0', '3.1', head, truffleruby, truffleruby-head]
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# bundler-cache: true
- name: Get the newest rubygems version to rid ourselves of warnings
run: gem update --system --no-document
- name: Install bundler
run: gem i bundler --no-document
- name: Install dependencies
run: |
bundle config set --local without benchmark
bundle install --jobs=3
- name: RSpec testing
run: |
JRUBY_OPTS="--dev --debug" bundle exec rspec --color --format documentation
- name: Coveralls Parallel
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.ruby-version }}
path-to-lcov: ./coverage/lcov/yandex360.lcov
parallel: true
coverage:
name: Coverage
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: ${{ github.workspace }}/coverage/lcov.info
parallel-finished: true