Skip to content

Commit

Permalink
chore: implement @puppeteer/doctest (#10933)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Sep 19, 2023
1 parent 825dd17 commit 88e0997
Show file tree
Hide file tree
Showing 10 changed files with 785 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -5,6 +5,7 @@ node_modules
# Production
build/
lib/
bin/

# Generated files
**/*.tsbuildinfo
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/changed-packages.yml
Expand Up @@ -43,6 +43,7 @@ jobs:
- 'test-d/**'
- 'tools/mochaRunner/**'
- '.mocharc.cjs'
- 'tools/doctest/**'
website:
- '.github/workflows/ci.yml'
- 'docs/**'
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -111,6 +111,26 @@ jobs:
curl -H "Content-Type: application/json" -X POST --user "$CRAWLER_USER_ID:$CRAWLER_API_KEY" \
"https://crawler.algolia.com/api/1/crawlers/$CRAWLER_ID/reindex"
doctest:
name: Doctest
runs-on: ubuntu-latest
needs: check-changes
if: ${{ contains(fromJSON(needs.check-changes.outputs.changes), 'puppeteer') }}
steps:
- name: Check out repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up Node.js
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
cache: npm
node-version: lts/*
- name: Install dependencies
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Run tests
run: npm run doctest

chrome-tests:
name: ${{ matrix.suite }} tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@ node_modules
# Production
build/
lib/
bin/

# Generated files
**/*.tsbuildinfo
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -5,6 +5,7 @@ node_modules
# Production
build/
lib/
bin/

# Generated files
**/*.tsbuildinfo
Expand Down

0 comments on commit 88e0997

Please sign in to comment.