Skip to content

Commit

Permalink
break apart action into two steps, move script into scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jan 26, 2024
1 parent 3cb86c6 commit af7b7d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/actions/setup-postgres-linux/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: "Set up postgres (linux)"
description: "Set up postgres service on linux vm for dbt integration tests"
name: Set up postgres (linux)
description: Set up and configure postgres database on linux for integration tests

runs:
using: "composite"
using: composite
steps:
- shell: bash
run: |
sudo systemctl start postgresql.service
pg_isready
sudo -u postgres bash ${{ github.action_path }}/setup_db.sh

- name: Start postgres service
run: sudo systemctl start postgresql.service && pg_isready
shell: bash

- name: Configure database
shell: bash
run: ./setup_postgres_linux.sh
working-directory: ./.github/scripts
File renamed without changes.

0 comments on commit af7b7d5

Please sign in to comment.