From 1d29edcaa8ec8357df6c3f8e9d1494ebf816c125 Mon Sep 17 00:00:00 2001 From: OpenInt Bot Date: Wed, 8 Jan 2025 23:46:44 -0800 Subject: [PATCH] Fix test and workflow --- .github/workflows/validate-workflow.yml | 9 ++++++++- sdks/sdk-google/src/index.spec.ts | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-workflow.yml b/.github/workflows/validate-workflow.yml index d23f2f6..c5bc80a 100644 --- a/.github/workflows/validate-workflow.yml +++ b/.github/workflows/validate-workflow.yml @@ -71,8 +71,15 @@ jobs: - name: Run integration tests run: cd examples && node test.cjs && node test.mjs + # - name: Setup upterm session + # uses: lhotari/action-upterm@v1 + - name: Publish package - run: pnpm publish # Should use the NPM_TOKEN env variable automatically + # NPM_TOKEN is not picked up by npm automatically unfortunately so we need to set it up manually + # Wish there is a better api for this though. + run: | + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc + pnpm publish # TODO: Add step to publish package here would be nice diff --git a/sdks/sdk-google/src/index.spec.ts b/sdks/sdk-google/src/index.spec.ts index c492bf8..a71eaf2 100644 --- a/sdks/sdk-google/src/index.spec.ts +++ b/sdks/sdk-google/src/index.spec.ts @@ -6,7 +6,7 @@ const maybeTest = accessToken ? test : test.skip const connectionId = process.env['OPENINT_GOOGLE_CONNECTION_ID']! const apiKey = process.env['OPENINT_API_KEY_FOR_GOOGLE']! -maybeTest.only('get user info', async () => { +maybeTest('get user info', async () => { const google = initGoogleSDK({auth: {bearer: accessToken}}) await google.drive_v2.GET('/about').then((r) => { console.log(r.data)