File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
integration-tests/js-compute Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments