Skip to content

Commit aabb66a

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 b6a11e6 commit aabb66a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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

Lines changed: 4 additions & 4 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
@@ -193,7 +193,7 @@ jobs:
193193
env:
194194
TAGS: bindata
195195
- name: run tests
196-
run: make test-mysql-migration integration-test-coverage
196+
run: make test-mysql-migration test-mysql#TestGitAnnex
197197
env:
198198
TAGS: bindata
199199
RACE_ENABLED: true
@@ -256,7 +256,7 @@ jobs:
256256
- run: make backend
257257
env:
258258
TAGS: bindata
259-
- run: make test-mssql-migration test-mssql
259+
- run: make test-mssql-migration test-mssql#TestGitAnnex
260260
timeout-minutes: 50
261261
env:
262262
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)