File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
+ ruby-image : &ruby-image cimg/ruby:<<parameters.ruby-version>>
3
4
env-vars : &env-vars
4
5
RAILS_ENV : test
5
6
NODE_ENV : test
6
7
BUNDLE_PATH : vendor/bundle
7
8
SPROCKETS : false
8
9
9
10
orbs :
10
-
11
-
12
11
browser-tools :
circleci/[email protected]
13
12
14
13
executors :
@@ -19,7 +18,7 @@ executors:
19
18
default : " 2.7"
20
19
type : string
21
20
docker :
22
- - image : cimg/ ruby:<<parameters.ruby-version>>-node
21
+ - image : * ruby-image
23
22
environment : *env-vars
24
23
25
24
commands :
@@ -52,6 +51,13 @@ commands:
52
51
- run :
53
52
name : Setup database
54
53
command : (cd spec/dummy && bundle exec rake db:setup)
54
+ - run :
55
+ name : Install node and yarn
56
+ command : |
57
+ curl -sL https://deb.nodesource.com/setup_$(cat .node-version).x | sudo -E bash -
58
+ sudo apt-get install -y nodejs
59
+ curl -o- -sL https://yarnpkg.com/install.sh | bash
60
+ sudo ln -s $HOME/.yarn/bin/yarn /usr/local/bin/yarn
55
61
- run :
56
62
name : Prepare Assets
57
63
command : |
Original file line number Diff line number Diff line change
1
+ 16
You can’t perform that action at this time.
0 commit comments