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
63 changes: 63 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: ci

on:
pull_request:
push:
branches:
- main

concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

Comment on lines +43 to +45
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build step is redundant here because the typecheck script already includes it. According to package.json, the typecheck script runs "npm run build && npm -w packages/auth run typecheck". Consider removing this step to avoid running the build twice.

Suggested change
- name: Build
run: npm run build

Copilot uses AI. Check for mistakes.
- name: Typecheck
run: npm -w packages/auth run typecheck

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Test (unit)
run: npm run test:unit
2 changes: 1 addition & 1 deletion examples/next-admin-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dev": "next dev -p 3017",
"build": "next build",
"start": "next start -p 3017",
"auth:ensure": "npm exec playwright-kit -- auth ensure --dotenv",
"auth:ensure": "playwright-kit auth ensure --dotenv",
"pretest": "npm run auth:ensure",
"test": "playwright test"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/next-admin-auth/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
use: {
baseURL: "http://127.0.0.1:3017",
actionTimeout: 10_000,
navigationTimeout: 30_000,
navigationTimeout: 60_000,
},
webServer: {
command: "npm run dev",
Expand Down