Skip to content

Commit

Permalink
fix: PR checks (#885)
Browse files Browse the repository at this point in the history
* fix: lambda run

* fix: pre-commit

* fix: pre-commit
  • Loading branch information
sattvikc authored Jul 16, 2024
1 parent 9689ea1 commit 50f3f07
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pre-commit-hook-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ jobs:
pr-title:
name: Pre commit hook check
runs-on: ubuntu-latest
container: rishabhpoddar/supertokens_website_sdk_testing
steps:
- uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: "16"
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
node-version: 16
- run: rm -rf .git && git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- run: npm i --force && cd test/with-typescript && npm i --force
- run: ./hooks/pre-commit.sh
2 changes: 1 addition & 1 deletion .github/workflows/test-edge-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
working-directory: examples/next/with-emailpassword
steps:
- uses: actions/checkout@v2
- run: echo $GITHUB_REF_NAME
- run: echo $GITHUB_SHA
- run: npm install git+https://github.com:supertokens/supertokens-node.git#$GITHUB_SHA
- run: npm install
- run: npm install [email protected] [email protected] puppeteer@^11.0.0 isomorphic-fetch@^3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}
role-duration-seconds: 1200
role-session-name: Github-action
- run: echo $GITHUB_REF_NAME
- run: echo $GITHUB_SHA
- run: npm install git+https://github.com:supertokens/supertokens-node.git#$GITHUB_SHA
- run: npm install
- run: npm install [email protected] [email protected] puppeteer@^11.0.0 isomorphic-fetch@^3.0.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mkdir lambda && cd lambda
npm init -y
npm i -s @middy/core @middy/http-cors
npm i --save git+ssh://[email protected]:supertokens/supertokens-node.git#$GITHUB_REF_NAME
npm i --save git+ssh://[email protected]:supertokens/supertokens-node.git#$GITHUB_SHA
mkdir nodejs
cp -r node_modules nodejs
cp package.json nodejs
Expand Down

0 comments on commit 50f3f07

Please sign in to comment.