Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

chore: migrate to Github Actions #171

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions .circleci/config.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on: [push]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Use Node.js 10
uses: actions/setup-node@v1
with:
node-version: 10

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache packages
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: |
yarn --frozen-lockfile

- name: Lint files
run: |
yarn lint

- name: Typecheck files
run: |
yarn typescript

- name: Run unit tests
run: |
yarn test --coverage

- name: Build packages
run: |
yarn lerna run prepare