Bump puppeteer-core from 24.23.0 to 24.25.0 #157
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: AWS Lambda CI (arm64) | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| name: Build Lambda Layer | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| # Required to checkout the code | |
| contents: read | |
| # Required to put a comment into the pull-request | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22.x | |
| - name: Install Packages | |
| run: npm ci | |
| - name: Run Source Tests | |
| run: npm run test:source | |
| continue-on-error: true | |
| - name: "Report Coverage" | |
| uses: davelosert/vitest-coverage-report-action@v2 | |
| - name: Compile Typescript | |
| run: npm run build | |
| - name: Create Lambda Layer | |
| run: make chromium.arm64.zip | |
| - name: Upload Layer Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: chromium.arm64.zip | |
| path: chromium.arm64.zip | |
| execute: | |
| name: Lambda (Node ${{ matrix.version }}.x) | |
| needs: build | |
| runs-on: ubuntu-24.04-arm | |
| strategy: | |
| matrix: | |
| event: | |
| - example.com | |
| version: | |
| - 20 | |
| - 22 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Setup AWS SAM CLI | |
| uses: aws-actions/setup-sam@v2 | |
| - name: Download Layer Artifact | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: chromium.arm64.zip | |
| - name: Provision Layer | |
| run: unzip chromium.arm64.zip -d _/amazon/code | |
| - name: Install test dependencies | |
| run: npm install --prefix _/amazon/handlers puppeteer-core --bin-links=false --fund=false --omit=optional --omit=dev --package-lock=false --save=false | |
| - name: Patch template.yml file with arm64 support | |
| run: sed -i 's/x86_64/arm64/g' _/amazon/template.yml | |
| - name: Invoke Lambda on SAM | |
| run: sam local invoke --template _/amazon/template.yml --event _/amazon/events/${{ matrix.event }}.json node${{ matrix.version }} 2>&1 | (grep 'Error' && exit 1 || exit 0) |