Update puppeteer dep #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test compatibility with puppeteer | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout your repository (PR) | |
| uses: actions/checkout@v4 | |
| - name: Clone website-scraper-puppeteer | |
| run: git clone --single-branch --branch add-compatibility-bridge https://github.com/website-scraper/website-scraper-puppeteer.git | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| working-directory: ./website-scraper-puppeteer | |
| run: npm install | |
| - name: Install compatibility package from the branch | |
| working-directory: ./website-scraper-puppeteer | |
| run: npm install website-scraper/website-scraper-puppeteer-compatibility-bridge#$GITHUB_REF_NAME --save | |
| - name: Run tests | |
| working-directory: ./website-scraper-puppeteer | |
| run: npm test |