Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: move promise test to canary workflow #2893

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jest.config.*
playwright.config.js
7 changes: 5 additions & 2 deletions .github/workflows/test-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
workflow_run:
workflows: [Test and Release]
types:
- completed

jobs:
test:
Expand All @@ -23,5 +27,4 @@ jobs:
pnpm clean
pnpm build
pnpm run-all-checks
pnpm test
pnpm test:build
pnpm test:canary
2 changes: 1 addition & 1 deletion e2e/site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"~/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "next.config.js"],
"exclude": ["node_modules"]
}
5 changes: 5 additions & 0 deletions jest.config.canary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const config = require('./jest.config')
module.exports = {
...config,
testRegex: [config.testRegex, '/test/canary/.*\\.test\\.tsx?$'],
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"test": "jest",
"test:build": "jest --config jest.config.build.js",
"test:e2e": "playwright test",
"test:canary": "jest --config jest.config.canary.js",
"run-all-checks": "pnpm types:check && pnpm lint && pnpm test-typing"
},
"lint-staged": {
Expand Down Expand Up @@ -152,8 +153,8 @@
"lint-staged": "13.2.2",
"next": "^13.4.4",
"prettier": "2.8.8",
"react": "18.3.0-canary-2e470a788-20240214",
"react-dom": "18.3.0-canary-2e470a788-20240214",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.9",
"rimraf": "5.0.1",
"semver": "^7.5.1",
Expand All @@ -175,4 +176,4 @@
"client-only": "^0.0.1",
"use-sync-external-store": "^1.2.0"
}
}
}
60 changes: 30 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Loading