aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-10 10:41:22 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-08-10 10:41:22 +0900
commit49a9fb985fa5c7a3966d22d21c71c8cec5a510f6 (patch)
tree4e5bfbf13b0e0387d36e1c4cb1b642fddbbe5a01 /.circleci
parent28c6b2b608aaae2135e3a678ab1b599bccc0be2b (diff)
Use yarn on CircleCI
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml29
1 files changed, 15 insertions, 14 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index f6ee180..91ea92c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -42,17 +42,18 @@ commands:
echo 'export PATH=~/geckodriver/$GECKODRIVER_VERSION:$PATH' >> $BASH_ENV
- setup_npm:
+ install_dependencies:
steps:
- restore_cache:
- key: dependency-cache-{{ checksum "package-lock.json" }}
+ keys:
+ - yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
- command: npm install
+ command: yarn install
- save_cache:
- key: dependency-cache-{{ checksum "package-lock.json" }}
+ key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- - node_modules
+ - ~/.cache/yarn
jobs:
build:
@@ -61,10 +62,10 @@ jobs:
steps:
- install_firefox
- checkout
- - setup_npm
- - run: npm run lint
- - run: npm test
- - run: npm run package
+ - install_dependencies
+ - run: yarn lint
+ - run: yarn test
+ - run: yarn package
e2e:
executor:
@@ -73,17 +74,17 @@ jobs:
- run: sudo apt-get update && sudo apt-get -y install xsel
- install_firefox
- checkout
- - setup_npm
- - run: npm run build
- - run: npm run test:e2e
+ - install_dependencies
+ - run: yarn build
+ - run: yarn test:e2e
deploy:
executor:
name: default
steps:
- checkout
- - setup_npm
- - run: npm run package
+ - install_dependencies
+ - run: yarn package
- run:
name: Deploy to AMO
command: |