-
Notifications
You must be signed in to change notification settings - Fork 16
53 lines (46 loc) · 1.6 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
52
53
name: Run watir-rails CI
'on':
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.ruby-version == 'debug' }}
strategy:
matrix:
BUNDLE_GEMFILE: [gemfiles/Gemfile.rails-3.x, gemfiles/Gemfile.rails-4.x, Gemfile]
ruby-version: [2.6.3, debug]
exclude:
# rails-4.2 requires BigDecimal.new (dropped in ruby-2.7)
- { BUNDLE_GEMFILE: gemfiles/Gemfile.rails-4.x, ruby-version: debug }
# The issue on rails-3.2 + head is json-1.8.6 compat (simplecov
# uses it), we could potentially workaround it using, for example, Oj
- { BUNDLE_GEMFILE: gemfiles/Gemfile.rails-3.x, ruby-version: debug }
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.BUNDLE_GEMFILE }}
LCOV_REPORT_PATH: './coverage/lcov.info'
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
# rails < 5 doesn't support bundler-2
bundler: 1
bundler-cache: true
- run: bundle exec rake
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ env.LCOV_REPORT_PATH }}
parallel: true
flag-name: ruby-${{ matrix.ruby-version }}_gemfile-${{ matrix.BUNDLE_GEMFILE }}
coveralls:
needs: test
runs-on: ubuntu-20.04
steps:
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true