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>
2024-03-09 09:44:02 +00:00
..
cron-licenses.yml Upgrading the actions/checkout@4 (#27096) 2023-09-16 15:06:27 +00:00
cron-lock.yml Don't run build and test if only docs changed (#24530) 2023-05-16 02:53:18 +00:00
cron-translations.yml Upgrading the actions/checkout@4 (#27096) 2023-09-16 15:06:27 +00:00
disk-clean.yml use hosted runners for nightly actions (#27485) (#27488) 2023-10-09 14:10:42 -04:00
files-changed.yml Upgrading the actions/checkout@4 (#27096) 2023-09-16 15:06:27 +00:00
pull-compliance.yml Rework spellchecking, add lint-spell (#29112) 2024-02-16 02:42:26 +00:00
pull-db-tests.yml Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 2024-03-09 09:44:02 +00:00
pull-docker-dryrun.yml Only run `docker-dryrun` when necessary (#25329) 2023-06-18 22:53:20 -04:00
pull-e2e-tests.yml Upgrading the actions/checkout@4 (#27096) 2023-09-16 15:06:27 +00:00
pull-labeler.yml Add `actions/labeler` (#26962) 2023-09-07 21:30:03 +00:00
release-nightly.yml fully replace drone with actions (#27556) (#27575) 2023-10-11 12:03:06 +00:00
release-tag-rc.yml Fix Docker meta action for releases (#28232) (#28395) 2023-12-07 16:29:17 -08:00
release-tag-version.yml Fix Docker meta action for releases (#28232) (#28395) 2023-12-07 16:29:17 -08:00