Change package manager #8
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: pull-request | |
on: | |
pull_request: | |
branches: | |
- master | |
permissions: | |
pull-requests: write | |
jobs: | |
test: | |
name: Test unit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.pnpm-store | |
key: pnpm-lock.json | |
- run: pnpm install | |
- run: pnpm run bench | |
- run: pnpm run test | |
- run: pnpm run coverage | |
- uses: davelosert/vitest-coverage-report-action@v2 | |
with: | |
json-summary-compare-path: coverage/coverage-summary.json | |
- run: npx playwright install --with-deps chromium | |
- run: npx playwright test | |
deploy: | |
name: Deploy | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.pnpm-store | |
key: pnpm-lock.json | |
- run: pnpm install | |
- run: pnpm run build | |
- uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy dist --project-name tesourofieis | |
packageManager: "pnpm" |