| 1 |
name: Wasm Build |
| 2 |
permissions: |
| 3 |
contents: read |
| 4 |
|
| 5 |
on: |
| 6 |
push: |
| 7 |
branches: |
| 8 |
- 'main' |
| 9 |
pull_request: |
| 10 |
types: [opened, synchronize, reopened, unlabeled] |
| 11 |
|
| 12 |
jobs: |
| 13 |
build: |
| 14 |
if: github.event.action != 'unlabeled' || github.event.label.name == 'kokoro:run' |
| 15 |
runs-on: ubuntu-latest |
| 16 |
|
| 17 |
steps: |
| 18 |
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 19 |
with: |
| 20 |
fetch-depth: '0' |
| 21 |
- name: Build web |
| 22 |
run: docker compose -f source/wasm/docker-compose.yml --project-directory . up |
| 23 |
- name: Run tests |
| 24 |
run: node test/wasm/test.js |