Skip to content

Commit

Permalink
fix postgresql test - 7
Browse files Browse the repository at this point in the history
Signed-off-by: daizhenyu <[email protected]>
  • Loading branch information
daizhenyu committed Dec 17, 2024
1 parent 3e20169 commit b5b8d7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ runs:
- name: install postgresql
shell: bash
run: |
wget http://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-14/postgresql-14_14.15-1.pgdg22.04+1_amd64.deb
sudo dpkg -i postgresql-14_14.15-1.pgdg22.04+1_amd64.deb
sudo apt-get -f install
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt update
apt-cache madison postgresql-14
sudo apt install -y postgresql-14
sudo service postgresql start
sudo service postgresql status
sudo -u postgres psql -c "CREATE DATABASE test;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
uses: ./.github/actions/scenarios/database-write-prohibition/mysql
test-for-postgresql:
name: Test for postgresql
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: needs.set-execution-conditions.outputs.enableOpengaussAndPostgresqlDataBaseWriteProhibitionAction == 'true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
Expand Down

0 comments on commit b5b8d7b

Please sign in to comment.