2021-07-09 09:21:41 +00:00
|
|
|
name: CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-07-09 09:30:26 +00:00
|
|
|
- uses: actions/checkout@v2
|
2022-02-08 11:05:56 +00:00
|
|
|
|
|
|
|
# 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 }}-
|
|
|
|
|
2021-08-13 11:24:54 +00:00
|
|
|
# install modules
|
2021-07-09 09:30:26 +00:00
|
|
|
- name: Install modules
|
|
|
|
run: yarn
|
2022-02-08 11:05:56 +00:00
|
|
|
|
2021-08-31 21:43:04 +00:00
|
|
|
# build
|
2021-11-18 13:09:18 +00:00
|
|
|
- name: Build Packages
|
2022-02-08 11:05:56 +00:00
|
|
|
run: yarn build:packages --cache-dir=".turbo"
|
|
|
|
|
2022-07-28 07:25:46 +00:00
|
|
|
# lint
|
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
|
|
|
|
2021-08-13 11:24:54 +00:00
|
|
|
# run unit tests
|
2021-07-09 09:21:41 +00:00
|
|
|
- name: Jest Annotations & Coverage
|
2021-11-18 13:09:18 +00:00
|
|
|
run: yarn test:ci
|