From 49a9fb985fa5c7a3966d22d21c71c8cec5a510f6 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 10 Aug 2020 10:41:22 +0900 Subject: Use yarn on CircleCI --- .circleci/config.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to '.circleci/config.yml') 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: | -- cgit v1.2.3