feat(docs): add manual trigger to cli doc workflow #3720
This file contains 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: WebAssembly | |
on: | |
pull_request: | |
merge_group: | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
go-version: [1.22.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
# Checkout should always be before setup-go to ensure caching is working | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 6.0.2 | |
- name: Build | |
run: ./scripts/build-wasm.sh | |
- name: Run npm package tests | |
run: ./scripts/run-tests-wasm.sh | |
- name: Run custom tester | |
run: ./scripts/run-tests-wasm.sh | |
env: | |
TESTER: true | |
- name: Run prettier | |
working-directory: wasm | |
run: pnpm lint |