v7.2.3 bundles a yargs-parser build that hard-requires Node >= 20 and throws at module load, before any goreleaser output is produced. The ci-base:1.1.0 container only has Node 18.19.1, so both the release workflow and the goreleaser-lint CI job were crashing before ever invoking goreleaser. v6.4.0 (CommonJS bundle, no such runtime gate) runs cleanly on Node 18 - verified locally by executing both bundles directly under the ci-base image. Claude-Session: https://claude.ai/code/session_01Gh3s4jbY5fQVQ4RnG6zhWy
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make format
|
|
- run: git diff --exit-code
|
|
|
|
goreleaser-lint:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/goreleaser-action@v6.4.0
|
|
with:
|
|
args: check
|
|
|
|
lint:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make ci-lint
|
|
|
|
build:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make build-nodata
|