From 57d744799c05a9fa36b0bb95eec051ec88742bbd Mon Sep 17 00:00:00 2001 From: SunBeau Date: Sun, 28 Apr 2024 12:49:57 +0800 Subject: [PATCH] Update ci-run-test-extensions.yml --- .github/workflows/ci-run-test-extensions.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-run-test-extensions.yml b/.github/workflows/ci-run-test-extensions.yml index ce9f8b4..2788d92 100644 --- a/.github/workflows/ci-run-test-extensions.yml +++ b/.github/workflows/ci-run-test-extensions.yml @@ -17,9 +17,6 @@ jobs: runs-on: ubuntu-latest container: image: docker.io/ubuntu:22.04 - env: - TZ: Asia/Shanghai - DEBIAN_FRONTEND: noninteractive volumes: - ${{ github.workspace }}:${{ github.workspace }} @@ -33,15 +30,16 @@ jobs: - name: Intall Deps run: | apt-get update - apt-get install -y gcc make cmake autoconf sudo lsb-release curl ca-certificates + apt-get install -y gcc make cmake autoconf sudo lsb-release curl ca-certificates tzdata - 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 update - sudo apt -y install 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' + apt update + timedatectl set-timezone Asia/Shanghai + apt -y install postgresql-15 libpq-dev - name: Start database run: |