Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Update the build workflow to use the scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kgapos committed Oct 27, 2023
1 parent 3afeb36 commit 20a7541
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

sonarcloud:
name: SonarCloud
Expand Down Expand Up @@ -46,14 +46,8 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build docker image
run: docker build . -t node-healthcheck:latest
run: ./scripts/build.sh
- name: Run docker image
run: docker run -d -p 11012:11012 -e NODE_URL=https://mainnet.vechain.org --name node-healthcheck node-healthcheck:latest
run: ./scripts/run.sh
- name: Smoke test
run: |
RESPONSE=$(curl -s http://localhost:11012/healthcheck)
IS_HEALTHY=$(echo $RESPONSE | jq ".isHealthy")
if [ "$IS_HEALTHY" != "true" ]; then
echo "Smoke test failed"
exit 1
fi
run: ./scripts/test.sh

0 comments on commit 20a7541

Please sign in to comment.