Skip to content

Commit e072c80

Browse files
authored
👷 Add spec tests in Latch to CI (#192)
1 parent a1b710e commit e072c80

File tree

3 files changed

+49
-18
lines changed

3 files changed

+49
-18
lines changed

.github/workflows/test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,44 @@ jobs:
3030
run: ctest -VV
3131
working-directory: build-unit-tests
3232

33+
latch:
34+
name: Run official testsuite
35+
runs-on: ubuntu-latest
36+
if: github.event.pull_request.draft == false
37+
steps:
38+
- uses: actions/checkout@v3
39+
with:
40+
submodules: recursive
41+
42+
- uses: actions/setup-node@v3
43+
with:
44+
node-version: 16
45+
46+
- name: Build warduino cli
47+
run: |
48+
cmake . -D BUILD_EMULATOR=ON
49+
cmake --build .
50+
echo "EMULATOR=$(realpath ./wdcli)" >> $GITHUB_ENV
51+
52+
- name: Build WABT # Build latest version
53+
run: |
54+
git clone --recursive https://github.com/TOPLLab/wabt.git
55+
cd wabt
56+
git checkout develop
57+
git submodule update --init
58+
mkdir build; cd build
59+
cmake ..
60+
cmake --build .
61+
62+
- name: Verify wat2wasm
63+
run: |
64+
echo "WABT=$(readlink -f ./wabt/build)" >> $GITHUB_ENV
65+
./wabt/build/wat2wasm --version
66+
67+
- run: npm install
68+
working-directory: tests/latch/
69+
70+
- name: Run Latch
71+
run: npm run spectest
72+
working-directory: tests/latch/
73+

tests/latch/latch-0.0.1.tgz

8 Bytes
Binary file not shown.

tests/latch/package-lock.json

Lines changed: 8 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)