File tree 5 files changed +12
-4
lines changed
5 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 48
48
- name : Install @clerk/backend in /integration
49
49
run : |
50
50
cd integration && npm init -y && npm install @clerk/backend && cd ..
51
+ - name : Install @clerk/clerk-js in os temp
52
+ working-directory : ${{runner.temp}}
53
+ run : mkdir clerk-js && cd clerk-js && npm init -y && npm install @clerk/clerk-js
51
54
- name : Run Playwright tests
52
55
run : ${{ inputs.SCRIPT }}
53
56
env :
Original file line number Diff line number Diff line change @@ -124,8 +124,12 @@ jobs:
124
124
working-directory : ./integration
125
125
run : npm init -y && npm install @clerk/backend
126
126
127
+ - name : Install @clerk/clerk-js in os temp
128
+ working-directory : ${{runner.temp}}
129
+ run : mkdir clerk-js && cd clerk-js && npm init -y && npm install @clerk/clerk-js
130
+
127
131
- name : Run Integration Tests
128
- run : npm run test:integration:${{ matrix.test-name }}
132
+ run : E2E_APP_CLERK_JS_DIR=$RUNNER_TEMP npm run test:integration:${{ matrix.test-name }}
129
133
env :
130
134
E2E_CLERK_VERSION : ' latest'
131
135
INTEGRATION_INSTANCE_KEYS : ${{ secrets.INTEGRATION_INSTANCE_KEYS }}
Original file line number Diff line number Diff line change 14
14
needs : build
15
15
uses : ./.github/workflows/base-e2e.yml
16
16
with :
17
- SCRIPT : ' E2E_NEXTJS_VERSION=canary npm run test:integration:nextjs'
17
+ SCRIPT : ' E2E_APP_CLERK_JS_DIR=$RUNNER_TEMP E2E_NEXTJS_VERSION=canary npm run test:integration:nextjs'
18
18
secrets : inherit
19
19
20
20
notify-slack :
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ export const startClerkJsHttpServer = async () => {
14
14
if ( ! process . env . CI ) {
15
15
await copyClerkJsToTempDir ( ) ;
16
16
}
17
- await startClerkJsHttpServer ( ) ;
18
17
return serveFromTempDir ( ) ;
19
18
} ;
20
19
@@ -37,6 +36,7 @@ const copyClerkJsToTempDir = async () => {
37
36
} ;
38
37
39
38
const serveFromTempDir = async ( ) => {
39
+ console . log ( 'Serving clerkJs from temp dir' ) ;
40
40
const port = 18211 ;
41
41
const serverUrl = `http://localhost:${ port } ` ;
42
42
const now = Date . now ( ) ;
@@ -53,6 +53,7 @@ const serveFromTempDir = async () => {
53
53
} ) ;
54
54
stateFile . setClerkJsHttpServerPid ( proc . pid ) ;
55
55
await waitForServer ( serverUrl , { log : console . log , maxAttempts : Infinity } ) ;
56
+ console . log ( 'clerk.browser.js is being served from' , serverUrl ) ;
56
57
} ;
57
58
58
59
// The location where the clerk.browser.js is served from
Original file line number Diff line number Diff line change 31
31
"test:cache:clear" : " FORCE_COLOR=1 turbo test:cache:clear --continue --concurrency=${TURBO_CONCURRENCY:-80%}" ,
32
32
"test:integration:base" : " DEBUG=1 npx playwright test --config integration/playwright.config.ts" ,
33
33
"test:integration:deployment:nextjs" : " DEBUG=1 npx playwright test --config integration/playwright.deployments.config.ts" ,
34
- "test:integration:generic" : " E2E_APP_ID=react.vite.withEmailCodes npm run test:integration:base -- sign-in-smoke " ,
34
+ "test:integration:generic" : " E2E_APP_ID=react.vite.* npm run test:integration:base -- --grep @generic " ,
35
35
"test:integration:nextjs" : " E2E_APP_ID=next.appRouter.withEmailCodes npm run test:integration:base -- --grep \" @generic|@nextjs\" " ,
36
36
"test:integration:remix" : " echo 'placeholder'" ,
37
37
"turbo:clean" : " turbo daemon clean" ,
You can’t perform that action at this time.
0 commit comments