0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-11 21:44:59 +01:00

pull-db-tests: Remove step building backend

No need to build it explicitly, db tests now depend on it.
This commit is contained in:
Michal Suchanek 2025-12-03 20:25:48 +01:00
parent 3ae8c1d828
commit d93812bed1

View File

@ -45,12 +45,10 @@ jobs:
check-latest: true check-latest: true
- name: Add hosts to /etc/hosts - 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: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts'
- run: make deps-backend
- run: make backend
env:
TAGS: bindata
- name: run migration tests - name: run migration tests
run: make test-pgsql-migration run: make test-pgsql-migration
env:
TAGS: bindata
- name: run tests - name: run tests
run: make test-pgsql run: make test-pgsql
timeout-minutes: 50 timeout-minutes: 50
@ -71,12 +69,10 @@ jobs:
with: with:
go-version-file: go.mod go-version-file: go.mod
check-latest: true check-latest: true
- run: make deps-backend - name: run migration tests
- run: GOEXPERIMENT='' make backend run: GOEXPERIMENT='' make test-sqlite-migration
env: env:
TAGS: bindata gogit sqlite sqlite_unlock_notify TAGS: bindata gogit sqlite sqlite_unlock_notify
- name: run migration tests
run: make test-sqlite-migration
- name: run tests - name: run tests
run: GOEXPERIMENT='' make test-sqlite run: GOEXPERIMENT='' make test-sqlite
timeout-minutes: 50 timeout-minutes: 50
@ -131,10 +127,6 @@ jobs:
check-latest: true check-latest: true
- name: Add hosts to /etc/hosts - name: Add hosts to /etc/hosts
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 minio devstoreaccount1.azurite.local mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts' run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 minio devstoreaccount1.azurite.local mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts'
- run: make deps-backend
- run: make backend
env:
TAGS: bindata
- name: unit-tests - name: unit-tests
run: make unit-test-coverage test-check run: make unit-test-coverage test-check
env: env:
@ -184,12 +176,10 @@ jobs:
check-latest: true check-latest: true
- name: Add hosts to /etc/hosts - 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: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts'
- run: make deps-backend
- run: make backend
env:
TAGS: bindata
- name: run migration tests - name: run migration tests
run: make test-mysql-migration run: make test-mysql-migration
env:
TAGS: bindata
- name: run tests - name: run tests
# run: make integration-test-coverage (at the moment, no coverage is really handled) # run: make integration-test-coverage (at the moment, no coverage is really handled)
run: make test-mysql run: make test-mysql
@ -224,11 +214,9 @@ jobs:
check-latest: true check-latest: true
- name: Add hosts to /etc/hosts - 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: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql devstoreaccount1.azurite.local" | sudo tee -a /etc/hosts'
- run: make deps-backend - run: make test-mssql-migration
- run: make backend
env: env:
TAGS: bindata TAGS: bindata
- run: make test-mssql-migration
- name: run tests - name: run tests
run: make test-mssql run: make test-mssql
timeout-minutes: 50 timeout-minutes: 50