mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-12 16:20:27 +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
|
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
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user