File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ on: [push, pull_request]
55jobs :
66 test :
77 runs-on : ubuntu-latest
8+ timeout-minutes : 60
89
910 services :
1011 docker :
2223 - name : Set up Node.js
2324 uses : actions/setup-node@v3
2425 with :
25- node-version : ' 16' # Specify your Node.js version here
26+ node-version : ' 18' # Specify your Node.js version here
27+
28+ - name : Set up pnpm
29+ run : |
30+ corepack enable
31+ corepack prepare pnpm@7.28.0 --activate
2632 - name : Install dependencies
27- run : npm install
33+ run : pnpm install --frozen-lockfile
2834 - name : Run integration tests
29- run : npm test # Make sure this command runs your integration tests
35+ run : pnpm test # Make sure this command runs your integration tests
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ function buildAuthorizerCliArgs(): { args: string[]; clientId: string } {
3030 const clientId = randomUUID ( ) ;
3131 const clientSecret = randomUUID ( ) ;
3232 const jwtSecret = randomUUID ( ) ;
33- const customAccessTokenScript =
34- "function(user,tokenPayload){var data = tokenPayload;data.extra = {'x-extra-id': user.id};return data;}" ;
3533
3634 const args = [
3735 '--client-id' ,
@@ -50,8 +48,6 @@ function buildAuthorizerCliArgs(): { args: string[]; clientId: string } {
5048 'sqlite' ,
5149 '--database-url' ,
5250 '/tmp/authorizer.db' ,
53- '--custom-access-token-script' ,
54- customAccessTokenScript ,
5551 '--enable-playground=false' ,
5652 '--log-level' ,
5753 'debug' ,
You can’t perform that action at this time.
0 commit comments