-
-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (35 loc) · 1.19 KB
/
rails-6-project.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
name: rails-6-project
on:
push:
branches: [ 'main' ]
pull_request:
concurrency:
group: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}-rails-6
cancel-in-progress: true
jobs:
main:
name: ruby-${{ matrix.ruby }} rspec-rails-${{ matrix.rspec-rails }} simplecov-0.${{ matrix.simplecov }}.0
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
rails: [ '6.1.0' ]
rspec-rails: [ '4.1.0', '5.0.0' ]
simplecov: [ 17, 18, 19, 20, 21 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Dependencies
run: bundle install --jobs 3 --retry 3
- name: Run Features
env:
RAILS_VERSION: "~> ${{ matrix.rails }}"
RSPEC_RAILS_VERSION: "~> ${{ matrix.rspec-rails }}"
SIMPLECOV_VERSION: "~> 0.${{ matrix.simplecov }}.0"
BRANCH_COVERAGE: "${{ matrix.simplecov >= 18 && 'true' || 'false' }}"
run: bundle exec cucumber --retry 1 --no-strict-flaky --tags @rails-app