diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..8f540cb --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,28 @@ +version: 2 + +jobs: + build: + working_directory: ~/babel-plugin-css-modules-transform + docker: + - image: circleci/node:10.12.0 + steps: + - checkout + - restore_cache: + key: yarndeps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - run: + name: Installing javascript dependencies + command: yarn install --cache-folder ~/.yarn-cache + - save_cache: + key: yarndeps-{{ .Branch }}-{{ checksum "yarn.lock" }} + paths: + - ~/.yarn-cache + - run: + name: Linting the source code + command: yarn lint + - run: + name: Testing the source code + command: | + yarn test + # test with babel 7 + ./install-babel-7.sh + BABEL_7=1 yarn test diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 9a48646..0000000 --- a/circle.yml +++ /dev/null @@ -1,20 +0,0 @@ -machine: - environment: - PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" - node: - version: 6.12.3 - -dependencies: - cache_directories: - - ~/.cache/yarn - -dependencies: - override: - - yarn - -test: - override: - - yarn test - # test with babel 7 - - ./install-babel-7.sh - - BABEL_7=1 yarn test