Skip to content

Commit

Permalink
testing with older version 10.23-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed Sep 19, 2024
1 parent fad0dcc commit 38d02c9
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/test_postgresql_OS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,32 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download and unpack PostgreSQL Portable Edition
- name: Download PostgreSQL Portable for macOS
if: matrix.os == 'macos-latest'
run: wget https://get.enterprisedb.com/postgresql/postgresql-10.23-1-osx-binaries.zip -O postgresql.zip

- name: Download PostgreSQL Portable for Ubuntu
if: matrix.os == 'ubuntu-latest'
run: wget https://get.enterprisedb.com/postgresql/postgresql-10.23-1-linux-x64-binaries.tar.gz -O postgresql.tar.gz

- name: Download PostgreSQL Portable for Windows
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest -Uri https://get.enterprisedb.com/postgresql/postgresql-10.23-1-windows-x64-binaries.zip -OutFile postgresql.zip
shell: pwsh

- name: Unpack PostgreSQL archive on macOS or Windows
if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest'
run: |
unzip postgresql.zip -d $GITHUB_WORKSPACE
mv $GITHUB_WORKSPACE/pgsql $GITHUB_WORKSPACE/postgresql
- name: Unpack PostgreSQL archive on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
wget https://get.enterprisedb.com/postgresql/postgresql-10.23-1-osx-binaries.zip -O postgresql.zip
elif [[ "$RUNNER_OS" == "Linux" ]]; then
wget https://get.enterprisedb.com/postgresql/postgresql-10.23-1-linux-x64-binaries.tar.gz -O postgresql.tar.gz
tar -xzf postgresql.tar.gz -C $GITHUB_WORKSPACE
mv $GITHUB_WORKSPACE/pgsql $GITHUB_WORKSPACE/postgresql
elif [[ "$RUNNER_OS" == "Windows" ]]; then
Invoke-WebRequest -Uri https://get.enterprisedb.com/postgresql/postgresql-10.23-1-windows-x64-binaries.zip -OutFile postgresql.zip
fi
if [[ "$RUNNER_OS" == "macOS" || "$RUNNER_OS" == "Windows" ]]; then
unzip postgresql.zip -d $GITHUB_WORKSPACE
mv $GITHUB_WORKSPACE/pgsql $GITHUB_WORKSPACE/postgresql
fi
tar -xzf postgresql.tar.gz -C $GITHUB_WORKSPACE
mv $GITHUB_WORKSPACE/pgsql $GITHUB_WORKSPACE/postgresql

- name: Setup PostgreSQL environment variables
run: |
Expand Down

0 comments on commit 38d02c9

Please sign in to comment.