Skip to content

Commit 5817f2c

Browse files
committed
1 parent aa283d5 commit 5817f2c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
version: 2.1
22

3+
ruby-image: &ruby-image cimg/ruby:<<parameters.ruby-version>>
34
env-vars: &env-vars
45
RAILS_ENV: test
56
NODE_ENV: test
67
BUNDLE_PATH: vendor/bundle
78
SPROCKETS: false
89

910
orbs:
10-
ruby: circleci/[email protected]
11-
node: circleci/[email protected]
1211
browser-tools: circleci/[email protected]
1312

1413
executors:
@@ -19,7 +18,7 @@ executors:
1918
default: "2.7"
2019
type: string
2120
docker:
22-
- image: cimg/ruby:<<parameters.ruby-version>>-node
21+
- image: *ruby-image
2322
environment: *env-vars
2423

2524
commands:
@@ -52,6 +51,13 @@ commands:
5251
- run:
5352
name: Setup database
5453
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
5561
- run:
5662
name: Prepare Assets
5763
command: |

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

0 commit comments

Comments
 (0)