Skip to content

Commit 5d61f76

Browse files
authored
Add a script to run all integration tests (#132)
* Add a script to run all integration tests * Run everything out of the repo root
1 parent 5b1f3d9 commit 5d61f76

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
cd "$(dirname "${BASH_SOURCE[0]}")"/../..
6+
7+
failed=
8+
9+
if ! command -v npm > /dev/null; then
10+
echo "Unable to find npm"
11+
failed=1
12+
fi
13+
14+
if ! command -v cargo > /dev/null; then
15+
echo "Unable to find cargo"
16+
failed=1
17+
fi
18+
19+
if ! command -v viceroy > /dev/null; then
20+
echo "Unable to find viceroy, please install it by running: cargo install viceroy"
21+
failed=1
22+
fi
23+
24+
if [ -n "$failed" ]; then
25+
exit 1
26+
fi
27+
28+
if [ ! -f "target/release/js-compute-runtime" ]; then
29+
cargo build --release
30+
fi
31+
32+
# build the action
33+
(
34+
cd .github/actions/compute-sdk-test
35+
npm ci
36+
)
37+
38+
node ".github/actions/compute-sdk-test/main.js"

0 commit comments

Comments
 (0)