Skip to content

Commit

Permalink
fix: pg client
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Rose committed Oct 9, 2024
1 parent a01a927 commit ce2ff2a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ jobs:
- name: Set PostgreSQL version environment variable
run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV

- name: Strip quotes from pg major and set env var
run: |
stripped_version=$(echo ${{ matrix.postgres_version }} | sed 's/^"\(.*\)"$/\1/')
echo "PGMAJOR=$stripped_version" >> $GITHUB_ENV
- name: Generate common-nix.vars.pkr.hcl
run: |
PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
Expand All @@ -66,10 +71,6 @@ jobs:
echo "result<<EOF" >> $GITHUB_OUTPUT
echo "$ARGS" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Strip quotes from pg major and set env var
run: |
stripped_version=$(echo ${{ matrix.postgres_version }} | sed 's/^"\(.*\)"$/\1/')
echo "PGMAJOR=$stripped_version" >> $GITHUB_ENV
- run: docker context create builders
- uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -99,7 +100,7 @@ jobs:
- name: Install psql
run: |
sudo apt update
sudo apt install -y --no-install-recommends postgresql-client
sudo apt install -y --no-install-recommends postgresql-client-{{ env.PGMAJOR }}
- name: Install pg_prove
run: sudo cpan -T TAP::Parser::SourceHandler::pgTAP
Expand Down

0 comments on commit ce2ff2a

Please sign in to comment.