From 7184dc7eb2918a015a1512f6c8e0ef90f8fa5efb Mon Sep 17 00:00:00 2001 From: Levente Hunyadi Date: Tue, 9 Jan 2024 18:24:44 +0100 Subject: [PATCH] Update GitHub Actions workflow trigger --- .github/workflows/{main.yaml => main.yml} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename .github/workflows/{main.yaml => main.yml} (93%) 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