-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (49 loc) · 1003 Bytes
/
.gitlab-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
54
55
56
57
image: circleci/ruby:2.5.1-stretch-node
.default-cache: &default-cache
paths:
- ./.yarn-cache/
- ./node_modules/
- ./vendor/bundle/
variables:
RAILS_ENV: test
NODE_ENV: test
stages:
- prepare
- build
- review
before_script:
- bundle install --clean --deployment --jobs 4 --retry 3 --without development production
- yarn install --frozen-lockfile --cache-folder ./.yarn-cache/
setup-test-env:
stage: prepare
cache:
<<: *default-cache
script:
- ruby -v
- node -v
rubocop:
stage: review
dependencies:
- setup-test-env
cache:
<<: *default-cache
script:
- bundle exec rubocop
i18n-tasks:
stage: review
dependencies:
- setup-test-env
cache:
<<: *default-cache
script:
- bundle exec i18n-tasks check-normalized
- bundle exec i18n-tasks unused
eslint:
stage: review
dependencies:
- setup-test-env
cache:
<<: *default-cache
script:
- ./bin/rails react_on_rails:locale
- yarn test:lint