aboutsummaryrefslogtreecommitdiff
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-10 11:28:47 +0900
committerGitHub <noreply@github.com>2020-08-10 11:28:47 +0900
commitef9ba2269e278f71531e726f352b3e020b3dc8be (patch)
tree8360a7e64faa196771a467ffeb318e97bfa9a212 /.circleci/config.yml
parent04d6c922901c0352bda5221b4ac3d3a966754fcf (diff)
parent326b888d59264d4968eda8bc9984bff07e7fb6ee (diff)
Merge pull request #784 from ueokande/move-to-yarn
Migrate npm to yarn
Diffstat (limited to '.circleci/config.yml')
-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: |