Skip to content

Commit

Permalink
verify action has access to the scripts directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jan 29, 2024
1 parent 1115c6e commit de3bb43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/actions/setup-postgres-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 2 additions & 13 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de3bb43

Please sign in to comment.