You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
12 months ago
..
ISSUE_TEMPLATE Add `yamllint` (#26965) 1 year ago
workflows Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 12 months ago
FUNDING.yml Kd/add bountysource (#14323) 4 years ago
actionlint.yaml use hosted runners for nightly actions (#27485) (#27488) 1 year ago
labeler.yml fix labeler config on release/v1.21 (#27738) 1 year ago
pull_request_template.md Improve pull_request_template.md (#22888) 2 years ago
stale.yml Add `yamllint` (#26965) 1 year ago