Build binaries only for release tags on main
Branch CI no longer runs the GoReleaser snapshot build. test.yml lints, tests and runs `goreleaser check`, which validates the release config without compiling; release.yml stays the only workflow that builds, and only for v* tags whose commit is on main. `make check` mirrors this with a release-check target, and `make snapshot` remains for local packaging checks. 0.2.0 is not yet released, so its notes now say it ships under EUPL-1.2: the licence entry moves into the 0.2.0 section, dated 2026-11-30, and README states that releases up to 0.1.2 were published under AGPL-3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25d997fcd1
commit
853e8a9910
7 files changed
+39
-31
No files matched your search
@@ -1,14 +1,15 @@
|
||||
name: Test
|
||||
|
||||
# Every branch push, and no pull_request trigger: branches are pushed
|
||||
# directly, so each commit runs once. Tag pushes are left to release.yml.
|
||||
# directly, so each commit runs once. Branch pushes lint and test but build
|
||||
# no binaries; binaries are built only by release.yml, for tags on main.
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Lint, test and build
|
||||
name: Lint and test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -60,13 +61,11 @@ jobs:
|
||||
- name: Test (race detector)
|
||||
run: go test -race -timeout 5m ./...
|
||||
|
||||
# The release build without publishing: runs the before hooks,
|
||||
# cross-compiles every shipped target and packs the archives, so a
|
||||
# config error or a missing archive file fails here, not on a tag.
|
||||
# Same pin as release.yml.
|
||||
- name: Release snapshot
|
||||
# Validates .goreleaser.yaml without building anything, so a config
|
||||
# error fails here rather than on a tag. Same pin as release.yml.
|
||||
- name: GoReleaser config check
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: '2.20.3'
|
||||
args: release --snapshot --clean
|
||||
args: check
|
||||
Reference in new issue
Block a user