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/workflows
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
..
cron-licenses.yml Upgrading the actions/checkout@4 (#27096) 1 year ago
cron-lock.yml Don't run build and test if only docs changed (#24530) 2 years ago
cron-translations.yml Upgrading the actions/checkout@4 (#27096) 1 year ago
disk-clean.yml use hosted runners for nightly actions (#27485) (#27488) 1 year ago
files-changed.yml Upgrading the actions/checkout@4 (#27096) 1 year ago
pull-compliance.yml Rework spellchecking, add lint-spell (#29112) 1 year ago
pull-db-tests.yml Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 12 months ago
pull-docker-dryrun.yml Only run `docker-dryrun` when necessary (#25329) 2 years ago
pull-e2e-tests.yml Upgrading the actions/checkout@4 (#27096) 1 year ago
pull-labeler.yml Add `actions/labeler` (#26962) 1 year ago
release-nightly.yml fully replace drone with actions (#27556) (#27575) 1 year ago
release-tag-rc.yml Fix Docker meta action for releases (#28232) (#28395) 1 year ago
release-tag-version.yml Fix Docker meta action for releases (#28232) (#28395) 1 year ago