Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 32 additions & 20 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,40 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
typescript:
name: typescript
biome:
name: lint and format
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci

tests:
name: unit tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Install
uses: ./.github/composite-actions/install
- name: lint
run: pnpm -r lint
- name: type-check
run: pnpm -r type-check
- name: prettier
run: pnpm prettier -c .
- name: build
run: pnpm -r build
- name: test
- name: Build
run: pnpm -F @vercel/analytics build
- name: Run tests
run: pnpm -r test

playwright:
name: playwright
name: e2e tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
Expand All @@ -41,14 +53,14 @@ jobs:
- 'test:e2e:production'
- 'test:e2e:development'
steps:
- name: checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v5
- name: Install
uses: ./.github/composite-actions/install
- name: get playwright version
- name: Get Playwright version
id: pw
run: echo "version=$(cat apps/nextjs/package.json | jq -r '.devDependencies."@playwright/test"')" >> $GITHUB_OUTPUT
- name: install playwright
- name: Install Playwright
run: pnpx playwright@${{ steps.pw.outputs.version }} install
- name: test
- name: Run tests
run: pnpm -r ${{ matrix.test }}
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Install
uses: ./.github/composite-actions/install
- name: lint
run: pnpm -r lint
- name: type-check
run: pnpm -r type-check
- name: prettier
run: pnpm prettier -c .
- name: build
run: pnpm -r build
- run: pnpm --filter @vercel/analytics publish --tag beta --no-git-checks
- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci
- name: Build
run: pnpm -F @vercel/analytics build
- run: pnpm -F @vercel/analytics publish --tag beta --no-git-checks
if: github.event.release.prerelease == true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
- run: pnpm --filter @vercel/analytics publish --no-git-checks
- run: pnpm -F@vercel/analytics publish --no-git-checks
if: github.event.release.prerelease == false
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ dist
.DS_Store
.vscode
.vercel
.claude
.env*.local
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierignore

This file was deleted.

Loading
Loading