From d7ad507987c2052c7abb9b9e8a0233d59c285147 Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Fri, 23 Apr 2021 21:07:32 +0200 Subject: [PATCH] Fix postgres + add api test cache --- .github/postgres.testing.env | 2 +- .github/workflows/tests.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/postgres.testing.env b/.github/postgres.testing.env index f8bdbe23..6d50221a 100644 --- a/.github/postgres.testing.env +++ b/.github/postgres.testing.env @@ -1,2 +1,2 @@ PHOTOVIEW_DATABASE_DRIVER=postgres -PHOTOVIEW_POSTGRES_URL='photoview:photosecret@tcp(postgres)/photoview_test' +PHOTOVIEW_POSTGRES_URL=postgres://photoview:photosecret@postgres/photoview_test diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 500a8230..2c3e19d1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,6 +55,14 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 + - name: Cache Go dependencies + uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Get C dependencies run: | sudo add-apt-repository ppa:strukturag/libheif