chore: skip stealth test in github actions

ref: https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
This commit is contained in:
TonyRL
2023-01-22 21:08:59 +00:00
committed by Tony
parent 131374c059
commit 4c51a2b6c9
2 changed files with 1 additions and 2 deletions

View File

@@ -49,7 +49,6 @@ jobs:
run: npm run jest:coverage run: npm run jest:coverage
env: env:
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/ REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/
GH_ACTIONS: 1
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
if: ${{ matrix.node-version == '18' }} if: ${{ matrix.node-version == '18' }}
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3

View File

@@ -42,7 +42,7 @@ describe('puppeteer', () => {
browser = null; browser = null;
}, 45000); }, 45000);
if (!process.env.GH_ACTIONS) { if (!process.env.GITHUB_ACTIONS) {
it('puppeteer without stealth', async () => { it('puppeteer without stealth', async () => {
puppeteer = require('../../lib/utils/puppeteer'); puppeteer = require('../../lib/utils/puppeteer');
browser = await puppeteer({ stealth: false }); browser = await puppeteer({ stealth: false });