1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/.github
Lunny Xiao e8b6d28ab9
Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662)
Backport #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 migrations 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.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2024-03-09 09:44:02 +00:00
..
ISSUE_TEMPLATE Add yamllint (#26965) 2023-09-07 22:24:06 -04:00
workflows Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 2024-03-09 09:44:02 +00:00
actionlint.yaml use hosted runners for nightly actions (#27485) (#27488) 2023-10-09 14:10:42 -04:00
FUNDING.yml Kd/add bountysource (#14323) 2021-01-13 10:53:17 -05:00
labeler.yml fix labeler config on release/v1.21 (#27738) 2023-10-22 13:53:34 +00:00
pull_request_template.md Improve pull_request_template.md (#22888) 2023-02-20 19:14:02 -05:00
stale.yml Add yamllint (#26965) 2023-09-07 22:24:06 -04:00