From ad9b6337572b51b78004b7bed1d9e9d799396aff Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 9 May 2026 01:26:34 +0200 Subject: [PATCH] ci: restore make backend in db-test jobs The previous commit replaced `make backend` with `make generate-go` on the assumption that the gitea executable was unused by the integration tests. It is used: integration tests install git pre-receive hooks that shell out to the binary, so `git push` operations during tests fail with "No such file or directory". Reverts that part of the previous change; the other cache-reuse tweaks remain. Co-Authored-By: Claude (Opus 4.7) --- .github/workflows/pull-db-tests.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml index a5184baf67..358f8b8eac 100644 --- a/.github/workflows/pull-db-tests.yml +++ b/.github/workflows/pull-db-tests.yml @@ -52,7 +52,8 @@ jobs: cache-name: pgsql - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts' - - run: make deps-backend generate-go + - run: make deps-backend + - run: make backend env: TAGS: bindata - name: run migration tests @@ -80,7 +81,8 @@ jobs: - uses: ./.github/actions/go-cache with: cache-name: sqlite - - run: make deps-backend generate-go + - run: make deps-backend + - run: make backend env: TAGS: bindata gogit GOEXPERIMENT: @@ -207,7 +209,8 @@ jobs: cache-name: mysql - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts' - - run: make deps-backend generate-go + - run: make deps-backend + - run: make backend env: TAGS: bindata - name: run migration tests @@ -247,7 +250,8 @@ jobs: cache-name: mssql - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql devstoreaccount1.azurite.local" | sudo tee -a /etc/hosts' - - run: make deps-backend generate-go + - run: make deps-backend + - run: make backend env: TAGS: bindata - run: GITEA_TEST_DATABASE=mssql make test-migration