From 50f3f078ac587bcd31b6b9528ba4a721602f3e52 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 16 Jul 2024 11:57:18 +0530 Subject: [PATCH] fix: PR checks (#885) * fix: lambda run * fix: pre-commit * fix: pre-commit --- .github/workflows/pre-commit-hook-run.yml | 5 ++--- .github/workflows/test-edge-function.yml | 2 +- .github/workflows/test-examples.yml | 2 +- examples/aws/with-emailpassword/test/helpers/lambda-layer.sh | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-commit-hook-run.yml b/.github/workflows/pre-commit-hook-run.yml index 01f765e456..bf7b523666 100644 --- a/.github/workflows/pre-commit-hook-run.yml +++ b/.github/workflows/pre-commit-hook-run.yml @@ -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='test@example.com' 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='test@example.com' commit -m 'init for pr action' - run: npm i --force && cd test/with-typescript && npm i --force - run: ./hooks/pre-commit.sh diff --git a/.github/workflows/test-edge-function.yml b/.github/workflows/test-edge-function.yml index f072444803..a6824b9dcb 100644 --- a/.github/workflows/test-edge-function.yml +++ b/.github/workflows/test-edge-function.yml @@ -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 mocha@6.1.4 jsdom-global@3.0.2 puppeteer@^11.0.0 isomorphic-fetch@^3.0.0 diff --git a/.github/workflows/test-examples.yml b/.github/workflows/test-examples.yml index c6b3141ba1..468b6bac50 100644 --- a/.github/workflows/test-examples.yml +++ b/.github/workflows/test-examples.yml @@ -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 mocha@6.1.4 jsdom-global@3.0.2 puppeteer@^11.0.0 isomorphic-fetch@^3.0.0 diff --git a/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh b/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh index 661c4d441d..807ea29f85 100755 --- a/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh +++ b/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh @@ -1,7 +1,7 @@ mkdir lambda && cd lambda npm init -y npm i -s @middy/core @middy/http-cors -npm i --save git+ssh://git@github.com:supertokens/supertokens-node.git#$GITHUB_REF_NAME +npm i --save git+ssh://git@github.com:supertokens/supertokens-node.git#$GITHUB_SHA mkdir nodejs cp -r node_modules nodejs cp package.json nodejs