diff --git a/.circleci/config.yml b/.circleci/config.yml index ac09ba6..774c671 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: build: docker: - - image: cimg/node:14.10.1 # the primary container, where your job's commands are run + - image: 'circleci/node:12' # the primary container, where your job's commands are run steps: - checkout # check out the code in the project directory - restore_cache: @@ -10,6 +10,7 @@ jobs: - run: name: install node command: yarn global add node-gyp && yarn install + - run: yarn format:check - run: yarn test:ci - save_cache: key: yarn-packages-{{checksum "yarn.lock"}} diff --git a/package.json b/package.json index 9bc5dbc..09a400c 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "build": "react-scripts build", "test": "react-scripts test", "format:write": "prettier --write \"**/*.{js,vue,json,ts,tsx,md,yml,html}\"", - "format:check": "prettier --list-different **/*.{js,vue,json,ts,tsx,md,yml,html}" + "format:check": "prettier --list-different \"**/*.{js,vue,json,ts,tsx,md,yml,html}\"" }, "eslintConfig": { "extends": [