Skip to content

Commit

Permalink
add only one test for ci
Browse files Browse the repository at this point in the history
Signed-off-by: Erick Wendel <[email protected]>
  • Loading branch information
ErickWendel committed Jul 29, 2024
1 parent 66b9c9a commit ceb0085
Show file tree
Hide file tree
Showing 3 changed files with 457 additions and 441 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -42,9 +41,10 @@ jobs:
run: npm run docker:install-module

- name: Run Playwright tests
run: npm test
shell: bash
env:
GOOGLE_SHEETS_AUTH_FILE: ${{ secrets.GOOGLE_SHEETS_AUTH_FILE }}
run: npm test

- uses: actions/upload-artifact@v4
if: always()
Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
console.log('GOOGLE_SHEETS_AUTH_FILE:', process.env.GOOGLE_SHEETS_AUTH_FILE ? 'Exists' : 'Not set');

// Additional debugging
if (process.env.GOOGLE_SHEETS_AUTH_FILE) {
const secretData = JSON.parse(process.env.GOOGLE_SHEETS_AUTH_FILE);
console.log('Secret JSON keys:', Object.keys(secretData));
process.exit(0)
}

process.exit(1)
Loading

0 comments on commit ceb0085

Please sign in to comment.