forked from iisaphd/enroll
-
Notifications
You must be signed in to change notification settings - Fork 3
100 lines (97 loc) · 3.14 KB
/
ruby.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
90
91
92
93
94
95
96
97
98
99
100
name: Full suite check
on:
push:
schedule:
- cron: "0 6 * * *"
concurrency:
group: ruby-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rspec:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:5.0
ports:
- 27017:27017
options: >-
--name "mongo"
--health-cmd mongo
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
group:
[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
rubygems: 3.3.26
- uses: actions/setup-node@v4
with:
node-version: '12'
- name: Restore Node Modules
id: npm-cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-v12-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-v12-${{ hashFiles('yarn.lock') }}
- name: Install node dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Install Test boosters gem
run: gem install treye-semaphore_test_boosters --version '2.5.2'
- name: Run tests
run: rspec_booster --job ${{ matrix.group }}/${{ strategy.job-total }}
env:
RSPEC_SPLIT_CONFIGURATION_PATH: 'ci/rspec-split-config.json'
TEST_BOOSTERS_RSPEC_TEST_FILE_PATTERN: "{spec,components/benefit_markets/spec,components/benefit_sponsors/spec,components/notifier/spec,components/sponsored_benefits/spec,components/transport_gateway/spec,components/transport_profiles/spec}/**/*_spec.rb"
TB_RSPEC_FORMATTER: "progress"
cucumber:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:5.0
ports:
- 27017:27017
options: >-
--name "mongo"
--health-cmd mongo
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
group:
[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
rubygems: 3.3.26
- uses: actions/setup-node@v4
with:
node-version: '12'
- name: Restore Node Modules
id: npm-cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-v12-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-v12-${{ hashFiles('yarn.lock') }}
- name: Install node dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Install Test boosters gem
run: gem install treye-semaphore_test_boosters --version '2.5.2'
- name: Run tests
run: cucumber_booster --job ${{ matrix.group }}/${{ strategy.job-total }}