diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3cf48005e..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,48 +0,0 @@ -version: 2 - -defaults: &defaults - working_directory: ~/repo - docker: - - image: circleci/node - -jobs: - test: - <<: *defaults - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "yarn.lock" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: - name: Install - command: yarn install --frozen-lockfile - - - run: - name: Build - command: yarn build - - - run: - name: Lint - command: yarn lint:post-build - - - run: - name: Run tests - command: yarn test --runInBand --no-cache --coverage - - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "yarn.lock" }} - - - persist_to_workspace: - root: ~/repo - paths: . - -workflows: - version: 2 - test-deploy: - jobs: - - test diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 000000000..428d32167 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,22 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Use Node.js 10.x + uses: actions/setup-node@v1 + with: + version: 10.x + - name: install yarn + run: npm install -g yarn + - name: yarn install, build, and test + run: | + yarn install --frozen-lockfile + yarn build + yarn test