chore: trigger github actions #137
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: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: pnpm/[email protected] | |
with: | |
version: 7 | |
- uses: actions/cache@v3 | |
id: pnpm-cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- if: steps.pnpm-cache.outputs.cache-hit != 'true' | |
run: pnpm install | |
- run: pnpm run lint | |
- run: pnpm run build | |
- run: pnpm run test | |
- uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./packages/text-vide/coverage | |
fail_ci_if_error: true | |
verbose: true |