For now there are two behaviors:
- If you push a new tag (following standads) it will automatically build and release. (example: here)
- If you send a pull request it will lint. (example: here)
You can use act to run GitHub Actions locally.
- CLI completion
- Versioning
- Docker images
- GitHub Container Registry
- Docker Hub
- Sign checksums, artifacts, Docker images and manifests
- Tests
Probably more to come.
You should use pre-commit to run linting and testing on your project, this way you can catch problems early.
I'm not going to do that here (we want action 👀), but you should.
---
repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.48.0
hooks:
- id: golangci-lint
default_install_hook_types: [pre-commit]
minimum_pre_commit_version: 2.20.0