js: simplify onMessage #98
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: Popcorn JS e2e tests | |
| on: | |
| push: | |
| branches: ["**"] | |
| paths: | |
| - "popcorn/js/**" | |
| - "popcorn/elixir/lib/**/wasm.ex" | |
| - ".github/workflows/popcorn_js_e2e_test.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| CI: true | |
| jobs: | |
| e2e: | |
| name: JS E2E tests | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup toolchain | |
| uses: ./.github/actions/setup-toolchain | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: "pnpm" | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install JS dependencies | |
| run: pnpm install | |
| - name: Build popcorn JS package | |
| run: pnpm build:prod | |
| working-directory: popcorn/js | |
| - name: Setup Playwright | |
| uses: ./.github/actions/setup-playwright | |
| with: | |
| cache-prefix: js-e2e | |
| lockfile: pnpm-lock.yaml | |
| version: "1.58.2" | |
| - name: Run e2e tests | |
| run: pnpm test:e2e | |
| working-directory: popcorn/js |