diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yml similarity index 93% rename from .github/workflows/main.yaml rename to .github/workflows/main.yml index cbba774..6b98ceb 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yml @@ -2,6 +2,10 @@ name: pysqlsync database tests on: + push: + paths: + - pysqlsync/** + - tests/** workflow_dispatch: defaults: @@ -64,11 +68,12 @@ jobs: env: ACCEPT_EULA: Y MSSQL_SA_PASSWORD: "" + SQLCMDPASSWORD: "" ports: - 1433:1433 # set health checks to wait until Microsoft SQL Server has started options: >- - --health-cmd '/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$SA_PASSWORD" -Q "SELECT 1" -b' + --health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -Q 'SELECT 1' -b" --health-interval 10s --health-timeout 5s --health-retries 5