From de3bb437e9a96c372aea9d76973bed858e0a8889 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Mon, 29 Jan 2024 18:24:36 -0500 Subject: [PATCH] verify action has access to the scripts directory --- .github/actions/setup-postgres-linux/action.yml | 5 +++++ .github/workflows/integration-tests.yml | 15 ++------------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/actions/setup-postgres-linux/action.yml b/.github/actions/setup-postgres-linux/action.yml index 8ea61f6e..c4ba1e9a 100644 --- a/.github/actions/setup-postgres-linux/action.yml +++ b/.github/actions/setup-postgres-linux/action.yml @@ -10,4 +10,9 @@ runs: run: | sudo systemctl start postgresql.service pg_isready + + - name: Configure the database + shell: bash + run: | + sudo chmod +x ./scripts/my-script.sh ./scripts/my-script.sh diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 75c2c327..47e53400 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -37,19 +37,8 @@ jobs: - name: Check out repository uses: actions/checkout@v3 - - name: Can I `cd ./scripts`? - shell: bash - run: | - sudo chmod +x ./scripts/my-script.sh - ./scripts/my-script.sh - - - name: Can I run .scripts/my-script.sh? - shell: bash - run: | - sudo chmod +x ./scripts/my-script.sh - ./scripts/my-script.sh -# - name: Setup postgres -# uses: ./.github/actions/setup-postgres-linux + - name: Setup postgres + uses: ./.github/actions/setup-postgres-linux - name: Setup `hatch` uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main