Skip to content

Commit df9116c

Browse files
kousuactions-user
authored andcommitted
git-annex: Only run git-annex tests.
Upstream can handle the full test suite; to avoid tedious waiting, we only test the code added in this fork.
1 parent 2e1005c commit df9116c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/pull-db-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- run: make backend
5151
env:
5252
TAGS: bindata
53-
- run: make test-pgsql-migration test-pgsql
53+
- run: make test-pgsql-migration test-pgsql#TestGitAnnex
5454
timeout-minutes: 50
5555
env:
5656
TAGS: bindata gogit
@@ -74,7 +74,7 @@ jobs:
7474
- run: make backend
7575
env:
7676
TAGS: bindata gogit sqlite sqlite_unlock_notify
77-
- run: make test-sqlite-migration test-sqlite
77+
- run: make test-sqlite-migration test-sqlite#TestGitAnnex
7878
timeout-minutes: 50
7979
env:
8080
TAGS: bindata gogit sqlite sqlite_unlock_notify
@@ -187,7 +187,7 @@ jobs:
187187
env:
188188
TAGS: bindata
189189
- name: run tests
190-
run: make test-mysql-migration integration-test-coverage
190+
run: make test-mysql-migration test-mysql#TestGitAnnex
191191
env:
192192
TAGS: bindata
193193
RACE_ENABLED: true
@@ -219,7 +219,7 @@ jobs:
219219
- run: make backend
220220
env:
221221
TAGS: bindata
222-
- run: make test-mysql8-migration test-mysql8
222+
- run: make test-mysql8-migration test-mysql8#TestGitAnnex
223223
timeout-minutes: 50
224224
env:
225225
TAGS: bindata
@@ -251,7 +251,7 @@ jobs:
251251
- run: make backend
252252
env:
253253
TAGS: bindata
254-
- run: make test-mssql-migration test-mssql
254+
- run: make test-mssql-migration test-mssql#TestGitAnnex
255255
timeout-minutes: 50
256256
env:
257257
TAGS: bindata

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ LDFLAGS := $(LDFLAGS) -X "main.MakeVersion=$(MAKE_VERSION)" -X "main.Version=$(G
110110
LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
111111

112112
GO_PACKAGES ?= $(filter-out code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO) list ./... | grep -v /vendor/))
113-
GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list code.gitea.io/gitea/models/migrations/...) code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO) list ./... | grep -v /vendor/))
114-
113+
# Only test code modified in the git-annex feature branch; upstream can handle testing the full suite.
114+
# This list was generated by `git diff --stat --name-only main.. -- '*.go' | xargs dirname | sort | uniq`
115+
GO_TEST_PACKAGES ?= code.gitea.io/gitea/modules/annex code.gitea.io/gitea/modules/base code.gitea.io/gitea/modules/git code.gitea.io/gitea/modules/private code.gitea.io/gitea/modules/setting code.gitea.io/gitea/modules/util code.gitea.io/gitea/routers/private code.gitea.io/gitea/routers/web code.gitea.io/gitea/services/auth
115116
FOMANTIC_WORK_DIR := web_src/fomantic
116117

117118
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)

0 commit comments

Comments
 (0)