0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 23:15:57 +01:00
gitea/.github
Lunny Xiao 45277486c2
Fix bug hidden on CI and make ci failed if tests failure (#29254)
The tests on migration tests failed but CI reports successfully


https://github.com/go-gitea/gitea/actions/runs/7364373807/job/20044685969#step:8:141

This PR will fix the bug on migration v283 and also the CI hidden
behaviour.

The reason is on the Makefile

`GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/mysql.ini $(GO) test
$(GOTESTFLAGS) -tags='$(TEST_TAGS)' $(MIGRATE_TEST_PACKAGES)` will
return the error exit code.

But 

`for pkg in $(shell $(GO) list
code.gitea.io/gitea/models/migrations/...); do \
GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/mysql.ini $(GO) test
$(GOTESTFLAGS) -tags '$(TEST_TAGS)' $$pkg; \
	done`

will not work.

This also fix #29602
2024-03-07 17:43:32 +01:00
..
ISSUE_TEMPLATE Align ISSUE_TEMPLATE with the new label system (#27573) 2023-10-11 13:25:31 +08:00
workflows Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-07 17:43:32 +01:00
actionlint.yaml Fix actionlint (#27513) 2023-10-07 20:42:32 -04:00
FUNDING.yml Remove bountysource (#29330) 2024-02-22 19:53:03 +01:00
labeler.yml Update labeler to match new labeling system (#27525) 2023-10-08 12:16:56 -04:00
pull_request_template.md