From 5ed457ccca9aac105fd30bb3829ecea9cc3b6441 Mon Sep 17 00:00:00 2001 From: samyfodil Date: Tue, 10 Dec 2024 23:27:25 -0600 Subject: [PATCH] nits: added tests to github actions --- .github/workflows/pre-commit.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 3a52c468..6f71c095 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -88,14 +88,17 @@ jobs: - name: Add entry to /etc/hosts run: | echo "127.0.0.1 hal.computers.com" | sudo tee -a /etc/hosts - - name: Build mock server + - name: Build mock servers run: | - cd pkg/spore-drive/clients/mock - go build . + for project in "spore-drive" "taucorder"; do + ( + cd pkg/$project/clients/mock + go build . + ) || exit 1 + done - name: Run JS/TS tests with retries run: | max_attempts=5 - attempt_num=1 for project in "pkg/spore-drive/clients/js" "pkg/taucorder/clients/js"; do attempt_num=1 ( @@ -114,5 +117,5 @@ jobs: fi sleep 5 done - ) + ) || exit 1 done \ No newline at end of file