mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-12 08:10:32 +08:00
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:
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user