Merge branch 'master' into dev #261
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: Test | |
on: | |
push: | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Run Tests and Generate Coverage Report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: "pnpm" | |
- name: Cache Turborepo Tasks | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/node_modules/.cache/turbo | |
key: ${{ runner.os }}-turbo-test-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: ${{ runner.os }}-turbo- | |
- run: pnpm install -rw --frozen-lockfile | |
- run: pnpm lint | |
- run: pnpm cov |