Version Packages #451
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: Smoke | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| smoke: | |
| name: Built-package smoke (${{ matrix.node }} / ubuntu) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [24] | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 | |
| - name: Use Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' | |
| - name: Install SDK dependencies | |
| run: pnpm install | |
| - name: Build SDK | |
| run: pnpm build | |
| - name: Pack SDK into smoke-tests tarball | |
| working-directory: smoke-tests | |
| run: node scripts/prepare-package.mjs | |
| - name: Install smoke-tests dependencies | |
| working-directory: smoke-tests | |
| run: npm install --no-audit --no-fund | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('smoke-tests/package.json') }} | |
| - name: Install Playwright Chromium | |
| working-directory: smoke-tests | |
| run: npm run playwright:install | |
| - name: Build bundler fixtures | |
| working-directory: smoke-tests | |
| run: npm run build:fixtures | |
| - name: Run smoke tests | |
| working-directory: smoke-tests | |
| run: npm run playwright:test | |
| - name: Upload Playwright report | |
| if: failure() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: playwright-report | |
| path: smoke-tests/playwright-report/ | |
| retention-days: 7 |