Commit Graph

3 Commits

Author SHA1 Message Date
Bo-Yi Wu 5c46fdf48b
ci: refactor GitHub Actions workflows and dependencies
- Rename GitHub Actions workflow file from `test.yml` to `testing.yml`
- Change workflow job name from `checks` to `testing`
- Update GitHub Actions `checkout` to version 4
- Remove specific Go version in favor of determining it from `go.mod`
- Update GitHub Actions `setup-go` to version 5
- Update GitHub Actions `cache` to version 4
- Add `golangci-lint` action with specified version and timeout arguments

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-02-16 10:53:35 +08:00
Bo-Yi Wu 7885fb7422
ci: improve release automation workflow
- Add a new GitHub Actions workflow for releases that triggers on any tag push, sets up Go environment, caches dependencies, and runs GoReleaser with Gitea token.
- Create a new GoReleaser configuration file that skips the build process, enables changelog generation with sorting, groups commits into categories for changelog, and excludes certain commit messages from the changelog.
- Define Gitea API and download URLs in the GoReleaser configuration.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-02-16 10:47:57 +08:00
appleboy 52993a9e36
ci: add GitHub Actions workflow for linting and caching Go dependencies
- Add a new file `.gitea/workflows/test.yml`
- Set up a workflow named `checks`
- Trigger the workflow on `push` and `pull_request`
- Set environment variables `GOPATH` and `GOCACHE`
- Define a job named `lint` that runs on `ubuntu-latest`
- Add steps to the `lint` job, including checking out the code, setting up Go, and caching Go dependencies

Signed-off-by: appleboy <appleboy.tw@gmail.com>
2024-01-27 23:09:35 +08:00