Set up test flow on my Mac
All checks were successful
Build and test project / build-and-test (push) Successful in 1m35s
All checks were successful
Build and test project / build-and-test (push) Successful in 1m35s
This commit is contained in:
@@ -15,6 +15,13 @@ FIRMWARE_FILE="${FIRMWARE_DIR}/kobo-update-${FIRMWARE_VERSION}.zip"
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
# Use local Go if available
|
||||||
|
LOCAL_GO_DIR="$(pwd)/go"
|
||||||
|
if [ -x "$LOCAL_GO_DIR/bin/go" ]; then
|
||||||
|
export GOROOT="$LOCAL_GO_DIR"
|
||||||
|
export PATH="$LOCAL_GO_DIR/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
# Download firmware if not cached.
|
# Download firmware if not cached.
|
||||||
if [ ! -f "$FIRMWARE_FILE" ]; then
|
if [ ! -f "$FIRMWARE_FILE" ]; then
|
||||||
echo "Downloading firmware ${FIRMWARE_VERSION} (~150MB)..."
|
echo "Downloading firmware ${FIRMWARE_VERSION} (~150MB)..."
|
||||||
|
|||||||
3
test.sh
3
test.sh
@@ -21,4 +21,7 @@ echo "=== Running WASM integration test ==="
|
|||||||
echo ""
|
echo ""
|
||||||
echo "=== Running E2E tests (Playwright) ==="
|
echo "=== Running E2E tests (Playwright) ==="
|
||||||
cd "$SCRIPT_DIR/tests/e2e"
|
cd "$SCRIPT_DIR/tests/e2e"
|
||||||
|
if [ ! -d "node_modules" ]; then
|
||||||
|
npm install
|
||||||
|
fi
|
||||||
npm test
|
npm test
|
||||||
|
|||||||
Reference in New Issue
Block a user