From 4c51a2b6c986efc45ece684c54a578842f7e4ae5 Mon Sep 17 00:00:00 2001 From: TonyRL Date: Sun, 22 Jan 2023 21:08:59 +0000 Subject: [PATCH] chore: skip stealth test in github actions ref: https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables --- .github/workflows/test.yml | 1 - test/utils/puppeteer.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8595b26735..577eb29859 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,7 +49,6 @@ jobs: run: npm run jest:coverage env: REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/ - GH_ACTIONS: 1 - name: Upload coverage to Codecov if: ${{ matrix.node-version == '18' }} uses: codecov/codecov-action@v3 diff --git a/test/utils/puppeteer.js b/test/utils/puppeteer.js index 932daf7dab..18f7858cf9 100644 --- a/test/utils/puppeteer.js +++ b/test/utils/puppeteer.js @@ -42,7 +42,7 @@ describe('puppeteer', () => { browser = null; }, 45000); - if (!process.env.GH_ACTIONS) { + if (!process.env.GITHUB_ACTIONS) { it('puppeteer without stealth', async () => { puppeteer = require('../../lib/utils/puppeteer'); browser = await puppeteer({ stealth: false });