-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (54 loc) · 1.48 KB
/
prs.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
name: CI PR Builds
on:
push:
branches:
- master
pull_request:
concurrency:
group: "ci-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.5', '2.6', '2.7', '3.0', '3.1']
activesupport: ['5.2', '6.0', '6.1', '7.0']
exclude:
- ruby: '2.5'
activesupport: '7.0'
- ruby: '2.6'
activesupport: '7.0'
- ruby: '3.0'
activesupport: '5.2'
- ruby: '3.1'
activesupport: '5.2'
env:
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/Gemfile.activesupport-${{ matrix.activesupport }}"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: 'Run bundle update'
run: bundle update
- name: Run tests
run: bundle exec rake spec
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.ruby }}-${{ matrix.activesupport }}
parallel: true
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