Skip to content

Commit

Permalink
better wait
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlp authored Dec 31, 2024
1 parent 53a8f22 commit 5a4f5e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ jobs:

- name: Wait for MSSQL
run: |
for i in {1..30}; do
for i in {1..10}; do
sleep $((11 - i))
if echo "SELECT 1" | /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P veryStrong123 &> /dev/null; then
echo "MSSQL is ready!"
break
fi
echo "Waiting for MSSQL to be ready..."
sleep 2
done
- name: Run Core Module Tests
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
target-folder: javadoc-core # url will be https://<username>.github.io/<repo>/javadoc-core
project: maven # or gradle

deploy:
maven-deploy:
runs-on: ubuntu-latest
needs: [build]
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down

0 comments on commit 5a4f5e1

Please sign in to comment.