-
Notifications
You must be signed in to change notification settings - Fork 152
38 lines (36 loc) · 938 Bytes
/
wasm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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