mirror of
https://github.com/tlsnotary/tlsn-js.git
synced 2026-04-02 03:00:18 -04:00
chore: fix test in github action (#41)
* Typescript tests in chrome * increase timeout to 5min * close page * force close browser * force exit process * refactor: clean up test code * chore: update readme for adding a new test
This commit is contained in:
1
utils/.gitignore
vendored
Normal file
1
utils/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
tlsn
|
||||
32
utils/build-tlsn-binaries.sh
Executable file
32
utils/build-tlsn-binaries.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# Run tlsn Server fixture
|
||||
|
||||
# Set the directory to the location of the script
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Name of the directory where the repo will be cloned
|
||||
REPO_DIR="tlsn"
|
||||
|
||||
# Check if the directory exists
|
||||
if [ ! -d "$REPO_DIR" ]; then
|
||||
# Clone the repository if it does not exist
|
||||
git clone https://github.com/tlsnotary/tlsn.git "$REPO_DIR"
|
||||
cd "$REPO_DIR"
|
||||
else
|
||||
# If the directory exists, just change to it
|
||||
cd "$REPO_DIR"
|
||||
# Fetch the latest changes in the repo without checkout
|
||||
git fetch
|
||||
fi
|
||||
|
||||
# Checkout the specific tag
|
||||
git checkout "v0.1.0-alpha.4"
|
||||
|
||||
for dir in "tlsn/tlsn-server-fixture/" "notary-server"; do
|
||||
# Change to the specific subdirectory
|
||||
cd ${dir}
|
||||
|
||||
# Build the project
|
||||
cargo build --release
|
||||
cd -
|
||||
done
|
||||
Reference in New Issue
Block a user