aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
Commit message (Collapse)AuthorAgeFilesLines
* fix(#33711): cross-publish docker images to ghcr.io (#34148)Allen Conlon3 days3-6/+66
| | | | | | This PR will cross-publish the release, rc, and nightly images from `docker.io` to `ghcr.io` as docker hub has imposed rate-limiting Signed-off-by: Allen Conlon <software@conlon.dev>
* Update go mod dependencies (#33988)wxiaoguang2025-03-251-1/+1
| | | | | | | | blevesearch is skipped because it causes errors --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Only keep popular licenses (#33832)wxiaoguang2025-03-101-1/+1
| | | Fix #33467
* Refactor repo-issue.ts (#33784)wxiaoguang2025-03-041-4/+2
| | | And remove jQuery
* Disable `vet` as part of `go test` (#33662)silverwind2025-03-031-1/+1
| | | | | | | | | `go vet` implicitely runs as part of `go test`, but we already have `make lint-go-vet`, so we were essentially running it twice. This should hopefully make `go test` slightly faster. Ref: https://pkg.go.dev/cmd/go#hdr-Test_packages > As part of building a test binary, go test runs go vet
* Update files-changed and labeler globs (#33720)silverwind2025-02-251-3/+5
| | | Few tweaks, should be self-explanatory.
* Fix OCI image.version annotation for releases to use full semver (#33698)Arif Er2025-02-241-2/+2
| | | | | | | | | | | | | | | | | | | | This commit fixes the docker build workflow such that semver-tagged releases use the full semver for the OCI `org.opencontainers.image.version` annotation, instead of using the major version only. This is done by changing the order of the tags that the `docker/metadata-action` action is told to generate. Since the tags that the action is told to generate are all of the same priority, the first in the list will be used to set the annotation. There is no need to fix the other two docker build workflows, i.e., (i) the nightly releases and (ii) the rc-tagged releases. This is because (i) the nightly releases do not get tagged with a semver, so the issue does not exist, and (ii) rc-tagged releases only get built with one tag, so the issue of needing to set an order of how tags are generated is irrelevant. Resolves go-gitea/gitea#33697.
* Improve swagger generation (#33664)wxiaoguang2025-02-211-0/+1
| | | | | | | Remove most "sed" tricks --------- Co-authored-by: silverwind <me@silverwind.io>
* Run yamllint with strict mode, fix issue (#33551)silverwind2025-02-101-2/+2
| | | | | | | | | Previously yamllint would issue warnings for certain things, while still exiting with zero. Now warnings are treated like errors and will cause non-zero exit: ``` -s, --strict return non-zero exit code on warnings as well as errors ```
* Disable cron task to update license (#33486)Lunny Xiao2025-02-031-2/+2
| | | | Help #33467 The file can be changed or removed after that issue is resolved.
* use dedicated runners for release artifacts (#32811)techknowlogick2024-12-123-9/+9
| | | | GH runners are having trouble, so switch the remaining release jobs to use dedicated runners.
* Improve testing and try to fix MySQL hanging (#32515)wxiaoguang2024-11-151-3/+7
| | | | | | | | | | | | | | | | | | | | By some CI fine tunes (`run tests`), SQLite & MSSQL could complete in about 12~13 minutes (before > 14), MySQL could complete in 18 minutes (before: about 23 or even > 30) Major changes: 1. use tmpfs for MySQL storage 1. run `make test-mysql` instead of `make integration-test-coverage` because the code coverage is not really used at the moment. 1. refactor testlogger to make it more reliable and be able to report stuck stacktrace 1. do not requeue failed items when a queue is being flushed (failed items would keep failing and make flush uncompleted) 1. reduce the file sizes for testing 1. use math ChaCha20 random data instead of crypot/rand (for testing purpose only) 1. no need to `DeleteRepository` in `TestLinguist` 1. other related refactoring to make code easier to maintain
* Bump CI,Flake and Snap to Node 22 (#32487)silverwind2024-11-135-8/+8
| | | | | | | Node 22 is LTS since 2024-10-29. Updated it everywhere. --------- Co-authored-by: techknowlogick <techknowlogick@gitea.com>
* use rebuilt mssql-2017 image (#32109)techknowlogick2024-09-231-3/+4
|
* Only use Host header from reverse proxy (#32060)wxiaoguang2024-09-201-1/+2
| | | | | | | | | X-Forwarded-Host has many problems: non-standard, not well-defined (X-Forwarded-Port or not), conflicts with Host header, it already caused problems like #31907. So do not use X-Forwarded-Host, just use Host header directly. Official document also only uses `Host` header and never mentioned others.
* Remove docs sub folder since docs has been moved to ↵Lunny Xiao2024-07-102-2/+0
| | | | https://gitea.com/gitea/docs (#31536)
* Azure blob storage support (#30995)Lunny Xiao2024-05-301-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | This PR implemented object storages(LFS/Packages/Attachments and etc.) for Azure Blob Storage. It depends on azure official golang SDK and can support both the azure blob storage cloud service and azurite mock server. Replace #25458 Fix #22527 - [x] CI Tests - [x] integration test, MSSQL integration tests will now based on azureblob - [x] unit test - [x] CLI Migrate Storage - [x] Documentation for configuration added ------ TODO (other PRs): - [ ] Improve performance of `blob download`. --------- Co-authored-by: yp05327 <576951401@qq.com>
* align s3 files with docker naming (#31050)techknowlogick2024-05-221-1/+1
| | | | docker images have `-nightly`, this will append the same to binaries uploaded to s3.
* Remove disk-clean workflow (#30741)Chongyi Zheng2024-04-282-27/+0
| | | | | The jobs in the workflow runs in parallel. The `disk-clean` job actually does nothing, i.e. it will not clean the disk for `nightly-binary`, `nightly-docker-rootful`, `nightly-docker-rootless`
* Enable npm cache on `setup-node` action (#30577)silverwind2024-04-195-0/+16
| | | | | Enable npm dependency cache in [setup-node](https://github.com/actions/setup-node). This should work reliably and across branches as well.
* Use Crowdin action for translation sync (#30054)Denys Konovalov2024-03-301-22/+11
| | | | | | | | | | | Switch from the old self-built action to the official one. We get: - config managed inside the repo - automatic upload when source file changes - automatic invalidation if source string changes (tested) - automatic download of new translation files Tested both upload and download.
* Add `stylelint-value-no-unknown-custom-properties` and convert stylelint ↵silverwind2024-03-291-1/+1
| | | | | | | | | | | config to js (#30117) Add [`stylelint-value-no-unknown-custom-properties`](https://github.com/csstools/stylelint-value-no-unknown-custom-properties) which lints for undefined CSS variables. No current violations. To make it work properly with editor integrations, I had to convert the config to JS to be able to pass absolute paths to the plugin, but this is a needed change anyways.
* Add svg linter and fix incorrect svgs (#30086)silverwind2024-03-262-0/+5
| | | | | | | | | | | | | | | | | Fixes https://github.com/go-gitea/gitea/issues/30082. Adds a new linter that searches for non-existant SVG images in templates. Output before the fix was: ``` $ make lint-templates SVG "octicon-warning" not found, used in templates/devtest/flex-list.tmpl SVG "octicon-warning" not found, used in templates/devtest/flex-list.tmpl SVG "octicon-markup" not found, used in templates/repo/diff/comment_form.tmpl make: *** [Makefile:438: lint-templates] Error 1 ``` <img width="306" alt="Screenshot 2024-03-25 at 23 31 05" src="https://github.com/go-gitea/gitea/assets/115237/1052d1a9-bfec-4d5a-9cae-f895f78f7c93">
* Don't lock using GitHub actions (#29913)Yarden Shoham2024-03-201-23/+0
| | | | | | | | We have our bot for this. See: - https://github.com/GiteaBot/gitea-backporter?tab=readme-ov-file#locks - https://github.com/GiteaBot/gitea-backporter/blob/main/src/lock.ts Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io>
* Update to labeler v5 (#29721)Denys Konovalov2024-03-121-3/+3
| | | | | | | | | | Updated to actions/labeler@v5 Updated labeler config accordingly, also improved the config and added more labels. --------- Co-authored-by: Giteabot <teabot@gitea.io>
* Fix bug hidden on CI and make ci failed if tests failure (#29254)Lunny Xiao2024-03-071-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Run editorconfig-checker on `locale_en-US.ini` (#29608)silverwind2024-03-061-0/+1
| | | | | | | Will prevent trailing whitespace etc being introduced in this file. --------- Co-authored-by: Giteabot <teabot@gitea.io>
* Update js and py dependencies, bump python (#29561)silverwind2024-03-031-4/+4
| | | | | | | - Update js and py dependencies excluding `@mcaptcha/vanilla-glue`, `eslint-plugin-array-func` - Update stylelint config - Require python 3.10 and use 3.12 on CI, bump setup-python as well - Tested markdown toolbar, charts, clipboard, swagger ui, vue
* Don’t comment when locking (#29508)techknowlogick2024-03-011-4/+0
| | | | | This reduces the number of emails/notifications on outdated issues. Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Lock issues and pulls faster (#29436)65432024-02-271-1/+6
| | | | | also point to the docs to explain why we do so followup to #29433
* Revert "Support SAML authentication (#25165)" (#29358)65432024-02-241-8/+0
| | | | | | | | | | This reverts #25165 (5bb8d1924d77c675467694de26697b876d709a17), as there was a chance some important reviews got missed. so after reverting this patch it will be resubmitted for reviewing again https://github.com/go-gitea/gitea/pull/25165#issuecomment-1960670242 temporary Open #5512 again
* Support SAML authentication (#25165)techknowlogick2024-02-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes https://github.com/go-gitea/gitea/issues/5512 This PR adds basic SAML support - Adds SAML 2.0 as an auth source - Adds SAML configuration documentation - Adds integration test: - Use bare-bones SAML IdP to test protocol flow and test account is linked successfully (only runs on Postgres by default) - Adds documentation for configuring and running SAML integration test locally Future PRs: - Support group mapping - Support auto-registration (account linking) Co-Authored-By: @jackHay22 --------- Co-authored-by: jackHay22 <jack@allspice.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: morphelinho <morphelinho@users.noreply.github.com> Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: silverwind <me@silverwind.io>
* Rework spellchecking, add `lint-spell` (#29106)silverwind2024-02-091-0/+12
| | | | | | | | | | | - Use maintained fork https://github.com/golangci/misspell - Rename `mispell-check` to `lint-spell`, add `lint-spell-fix` - Run `lint-spell` in separate actions step - Lint more files, fix discovered issues - Remove inaccurate and outdated info in docs (we do not need GOPATH for tools anymore) Maybe later we can add more spellchecking tools, but I have not found any good ones yet.
* Update dorny/paths-filter action (#29003)silverwind2024-01-311-1/+1
|
* feat: bump `dessant/lock-threads` and `actions/setup-go` to use nodejs20 ↵Rui Chen2023-12-218-19/+19
| | | | | | | | | | | | | | runtime (#28565) Update more actions to use nodejs20 runtime and also update the docs for checkout action usage. similar to: - #27836 - #27096 --------- Signed-off-by: Rui Chen <rui@chenrui.dev>
* Fix Docker meta action for releases (#28232)John Olheiser2023-12-072-3/+4
| | | | | | | | | | | | | | | | | Should fix #28229 and #28230 for next release. Assuming I'm reading the docs correctly for the docker meta action: https://github.com/docker/metadata-action#flavor-input https://github.com/docker/metadata-action#latest-tag 1. We want `latest=false` for the RCs. 2. `latest` should happen already due to `auto` mode, however there's an extra option for the `suffix` flavor. This PR is ready, but leaving it as draft to make sure someone double-checks my sleuth-work. Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Check for v prefix on tags for release clean name (#28257)John Olheiser2023-11-282-2/+2
|
* Fix actions when tagging (#28061)Lunny Xiao2023-11-252-1/+9
| | | | | | | close https://github.com/go-gitea/gitea/issues/28053 --------- Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove workaround in disk-clean.yml (#28195)Nanguan Lin2023-11-241-15/+0
| | | | According to https://github.com/jlumbroso/free-disk-space/issues/17, the issue has been fixed in the main branch.
* Bump workflows in github actions (#27836)Chongyi Zheng2023-10-308-45/+45
| | | | All major version upgrades are related to using Node v20 as default runtime
* actions/setup-go use go-version-file (#27651)Yevhen Pavlov2023-10-177-17/+20
| | | | These changes will allow not to specify the version of go in every pipeline.
* Make disk clean action a bit more robust (#27590)silverwind2023-10-121-6/+9
|
* fully replace drone with actions (#27556)techknowlogick2023-10-113-1/+267
| | | this builds binaries and docker images for tags
* switch to using official AWS step in release nightly (#27532)techknowlogick2023-10-091-8/+8
| | | | `jakejarvis/s3-sync-action@master` is out of date, and using official actions is always recommended
* Tweak labeler config (#27502)silverwind2023-10-081-1/+0
| | | | | Alternative to https://github.com/go-gitea/gitea/pull/27439. Removes a few spammy labels, and disables `sync-labels` which make it never remove labels (which is default behaviour).
* change runner for binarytechknowlogick2023-10-071-1/+1
|
* move re-useable workflowtechknowlogick2023-10-061-3/+2
|
* add checkout to disk-cleantechknowlogick2023-10-061-0/+1
|
* use hosted runners for nightly actions (#27485)techknowlogick2023-10-062-3/+42
| | | | | | | | I'm temporarily unable to properly evaluate actuated runners, and so I'm switching back to hosted runners until I am able to focus on that again. --------- Co-authored-by: silverwind <me@silverwind.io>
* Use minimal required version on CI and remove unnecessary services (#27429)Lunny Xiao2023-10-041-17/+3
|