3d4544548b
* chore(lint): upgrade typescript-eslint * chore(lint): add root "lint" script * chore(turbo): remove build dependency from lint * chore(lint): enable jest recommended rules * chore(lint): resolve errors * ci: add lint step * prettier Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
33 lines
748 B
YAML
33 lines
748 B
YAML
name: CI
|
|
on: push
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# turbo cache
|
|
- name: Turbo Cache
|
|
id: turbo-cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: node_modules/.cache/turbo
|
|
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
|
|
restore-keys: |
|
|
turbo-${{ github.job }}-${{ github.ref_name }}-
|
|
|
|
# install modules
|
|
- name: Install modules
|
|
run: yarn
|
|
|
|
# build
|
|
- name: Build Packages
|
|
run: yarn build:packages --cache-dir=".turbo"
|
|
|
|
# lint
|
|
- name: Lint
|
|
run: yarn lint
|
|
|
|
# run unit tests
|
|
- name: Jest Annotations & Coverage
|
|
run: yarn test:ci
|