Skip to content

Commit

Permalink
nits: added tests to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
samyfodil committed Dec 11, 2024
1 parent 767013f commit 5ed457c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
(
Expand All @@ -114,5 +117,5 @@ jobs:
fi
sleep 5
done
)
) || exit 1
done

0 comments on commit 5ed457c

Please # to comment.