diff --git a/.github/workflows/ci-run-test-extensions.yml b/.github/workflows/ci-run-test-extensions.yml index a69424b..732a951 100644 --- a/.github/workflows/ci-run-test-extensions.yml +++ b/.github/workflows/ci-run-test-extensions.yml @@ -37,11 +37,14 @@ jobs: - name: Install database run: | - sudo install -d /usr/share/postgresql-common/pgdg - sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc - sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' - sudo apt-get update - sudo apt-get install -y postgresql-15 libpq-dev + install -d /usr/share/postgresql-common/pgdg + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc + sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' + export DEBIAN_FRONTEND=noninteractive + echo "Asia/Shanghai" > /etc/timezone + dpkg-reconfigure --frontend noninteractive tzdata + apt-get update + apt-get install -y postgresql-15 libpq-dev - name: Start database run: |