diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea9af997c..da75ffede 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,13 @@ jobs: with: make: openapi + test-wasm-e2e: + needs: [ lint ] + uses: ./.github/workflows/make.yml + with: + make: test-wasm-e2e + playwright-browser: chromium + regtest: needs: [ lint ] uses: ./.github/workflows/regtest.yml @@ -95,5 +102,5 @@ jobs: python-version: ${{ matrix.python-version }} bundle: - needs: [ lint, test-api, test-wallets, test-unit, migration, openapi, regtest, jmeter ] + needs: [ lint, test-api, test-wallets, test-unit, migration, openapi, test-wasm-e2e, regtest, jmeter ] uses: ./.github/workflows/bundle.yml diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index 7b6df407d..bfed27a3c 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -15,6 +15,10 @@ on: description: "python version" type: string default: "3.12" + playwright-browser: + description: "Playwright browser to install before running make" + default: "" + type: string jobs: make: @@ -31,4 +35,7 @@ jobs: python-version: ${{ inputs.python-version }} node-version: ${{ matrix.node-version }} npm: ${{ inputs.npm }} + - name: Install Playwright browser + if: ${{ inputs.playwright-browser != '' }} + run: uv run playwright install --with-deps ${{ inputs.playwright-browser }} - run: make ${{ inputs.make }}