@@ -58,13 +58,12 @@ jobs:
5858 env :
5959 TAGS : bindata
6060 - name : run migration tests
61- run : make test-pgsql -migration
61+ run : GITEA_TEST_DATABASE=pgsql make test-migration
6262 - name : run tests
63- run : make test-pgsql
63+ run : GITEA_TEST_DATABASE=pgsql make test-integration
6464 timeout-minutes : 50
6565 env :
6666 TAGS : bindata gogit
67- TEST_TAGS : gogit
6867 TEST_LDAP : 1
6968
7069 test-sqlite :
@@ -84,18 +83,21 @@ jobs:
8483 with :
8584 cache-name : sqlite
8685 - run : make deps-backend
87- - run : GOEXPERIMENT='' make backend
86+ - run : make backend
8887 env :
8988 TAGS : bindata gogit sqlite sqlite_unlock_notify
89+ GOEXPERIMENT :
9090 - name : run migration tests
91- run : make test-sqlite-migration
91+ run : GITEA_TEST_DATABASE=sqlite make test-migration
92+ env :
93+ TAGS : bindata gogit
9294 - name : run tests
93- run : GOEXPERIMENT='' make test-sqlite
95+ run : GITEA_TEST_DATABASE=sqlite make test-integration
9496 timeout-minutes : 50
9597 env :
96- TAGS : bindata gogit sqlite sqlite_unlock_notify
97- RACE_ENABLED : true
98- TEST_TAGS : gogit sqlite sqlite_unlock_notify
98+ TAGS : bindata gogit
99+ GOEXPERIMENT :
100+ GOTEST_FLAGS : -race -timeout=40m
99101
100102 test-unit :
101103 if : needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
@@ -156,16 +158,15 @@ jobs:
156158 - name : unit-tests
157159 run : make test-backend test-check
158160 env :
159- TAGS : bindata
160- RACE_ENABLED : true
161- GOTESTFLAGS : -timeout=20m
161+ TAGS : bindata sqlite sqlite_unlock_notify
162+ GOTEST_FLAGS : -race -timeout=20m
162163 GITHUB_READ_TOKEN : ${{ secrets.GITHUB_READ_TOKEN }}
163164 - name : unit-tests-gogit
164- run : GOEXPERIMENT='' make test-backend test-check
165+ run : make test-backend test-check
165166 env :
166- TAGS : bindata gogit
167- RACE_ENABLED : true
168- GOTESTFLAGS : -timeout=20m
167+ TAGS : bindata gogit sqlite sqlite_unlock_notify
168+ GOEXPERIMENT :
169+ GOTEST_FLAGS : -race -timeout=20m
169170 GITHUB_READ_TOKEN : ${{ secrets.GITHUB_READ_TOKEN }}
170171
171172 test-mysql :
@@ -215,10 +216,9 @@ jobs:
215216 env :
216217 TAGS : bindata
217218 - name : run migration tests
218- run : make test-mysql -migration
219+ run : GITEA_TEST_DATABASE=mysql make test-migration
219220 - name : run tests
220- # run: make integration-test-coverage (at the moment, no coverage is really handled)
221- run : make test-mysql
221+ run : GITEA_TEST_DATABASE=mysql make test-integration
222222 env :
223223 TAGS : bindata
224224 TEST_INDEXER_CODE_ES_URL : " http://elastic:changeme@elasticsearch:9200"
@@ -258,9 +258,9 @@ jobs:
258258 - run : make backend
259259 env :
260260 TAGS : bindata
261- - run : make test-mssql -migration
261+ - run : GITEA_TEST_DATABASE=mssql make test-migration
262262 - name : run tests
263- run : make test-mssql
263+ run : GITEA_TEST_DATABASE=mssql make test-integration
264264 timeout-minutes : 50
265265 env :
266266 TAGS : bindata
0 commit comments