tldraw/.github/workflows/main.yml

34 lines
748 B
YAML
Raw Normal View History

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
# 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
2021-08-31 21:43:04 +00:00
# build
- name: Build Packages
run: yarn build:packages --cache-dir=".turbo"
# 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
run: yarn test:ci