Add build job with turbo cache to CI #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |