diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61a79b6f..5efbb7a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,3 +30,44 @@ jobs: run: ctest -VV working-directory: build-unit-tests + latch: + name: Run official testsuite + runs-on: ubuntu-latest + if: github.event.pull_request.draft == false + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Build warduino cli + run: | + cmake . -D BUILD_EMULATOR=ON + cmake --build . + echo "EMULATOR=$(realpath ./wdcli)" >> $GITHUB_ENV + + - name: Build WABT # Build latest version + run: | + git clone --recursive https://github.com/TOPLLab/wabt.git + cd wabt + git checkout develop + git submodule update --init + mkdir build; cd build + cmake .. + cmake --build . + + - name: Verify wat2wasm + run: | + echo "WABT=$(readlink -f ./wabt/build)" >> $GITHUB_ENV + ./wabt/build/wat2wasm --version + + - run: npm install + working-directory: tests/latch/ + + - name: Run Latch + run: npm run spectest + working-directory: tests/latch/ + diff --git a/tests/latch/latch-0.0.1.tgz b/tests/latch/latch-0.0.1.tgz index 8bd5fd87..2c563a40 100644 Binary files a/tests/latch/latch-0.0.1.tgz and b/tests/latch/latch-0.0.1.tgz differ diff --git a/tests/latch/package-lock.json b/tests/latch/package-lock.json index 9b0ce519..372c20fb 100644 --- a/tests/latch/package-lock.json +++ b/tests/latch/package-lock.json @@ -254,16 +254,16 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.2.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", - "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==", + "version": "20.3.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.3.tgz", + "integrity": "sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw==", "dev": true, "peer": true }, "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -1005,14 +1005,13 @@ "node_modules/latch": { "version": "0.0.1", "resolved": "file:latch-0.0.1.tgz", - "integrity": "sha512-wP7FoSlf7z0IeNaVTMxDkyBhRiSimZOVepJvQftLQ7hE/EoVjhwMay8qCppihjm0AqTyuhZY6WQvEpPy2ivl5w==", + "integrity": "sha512-hC6ovhcxRDBb7Z6keirsaNtukU953QM8vz78P7pXOXKzL/54d5Q10sPvkQHcunMxqm4btiJLw+9fZ86syPOFjA==", "dev": true, "dependencies": { "chai": "^4.3.6", "ieee754": "^1.2.1", "mocha": "10.1.0", - "ts-node": "^10.5.0", - "ts-retry-promise": "^0.7.0" + "ts-node": "^10.5.0" }, "bin": { "latch": "bin/latch" @@ -1592,15 +1591,6 @@ "node": ">=0.3.1" } }, - "node_modules/ts-retry-promise": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/ts-retry-promise/-/ts-retry-promise-0.7.0.tgz", - "integrity": "sha512-x6yWZXC4BfXy4UyMweOFvbS1yJ/Y5biSz/mEPiILtJZLrqD3ZxIpzVOGGgifHHdaSe3WxzFRtsRbychI6zofOg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",