Skip to content

Add build job with turbo cache to CI #7

Add build job with turbo cache to CI

Add build job with turbo cache to CI #7

Workflow file for this run

name: CI
on:
push:
branches:
- main
- alpha
pull_request:
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
- name: Restore cache
uses: actions/cache@v3
with:
path: |
**/.eslintcache
**/.stylelintcache
**/.jestcache
**/.turbo
node_modules/.cache/turbo
key: ${{ runner.os }}-validate-${{ github.sha }}
restore-keys: |
${{ runner.os }}-validate-
- name: Install dependencies
run: yarn
- name: Validate packages
run: yarn validate
- name: Upload test coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/bezier-react/coverage/lcov.info