From 354f87a6ce2af5a6811178a5b0a5fa42fd439752 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Wed, 14 Aug 2019 11:25:05 -0400 Subject: [PATCH 1/3] Add nodejs.yml --- .github/workflows/nodejs.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 000000000..98a389c20 --- /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 + yarn build --if-present + yarn test From c6b9a4b2c1b73547ff33f43dd573a9bd637c2341 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Wed, 14 Aug 2019 11:28:10 -0400 Subject: [PATCH 2/3] Use --frozen-lockfile --- .github/workflows/nodejs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 98a389c20..428d32167 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -17,6 +17,6 @@ jobs: run: npm install -g yarn - name: yarn install, build, and test run: | - yarn install - yarn build --if-present + yarn install --frozen-lockfile + yarn build yarn test From 1f52bc8a958350bf946e08b76fb5fd8d5fedd68b Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Wed, 14 Aug 2019 11:35:53 -0400 Subject: [PATCH 3/3] Remove CircleCI --- .circleci/config.yml | 48 -------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .circleci/config.yml 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