diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 482c923a..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: 2 -jobs: - test: - docker: - - image: circleci/node:8-browsers - steps: - - checkout - - restore_cache: - keys: - - npm-deps-{{ checksum "yarn.lock" }} - - npm-deps- - - run: yarn install - - save_cache: - key: npm-deps-{{ checksum "yarn.lock" }} - paths: - - node_modules - - run: yarn test -workflows: - version: 2 - test: - jobs: - - test diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 00000000..fc62f264 --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,35 @@ +name: Run tests + +on: [push] + +jobs: + all: + runs-on: ubuntu-latest + env: + CI: true + steps: + - uses: actions/checkout@v1 + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Get yarn cache + id: yarn-cache + run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/cache@v1 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Cache node modules + uses: actions/cache@v1 + with: + path: node_modules + key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.OS }}-node_modules- + - name: yarn install + run: yarn install + - name: typecheck + run: yarn test