Skip to content

Commit 843ff34

Browse files
Restore releases: sync go.sum and adopt shared release workflow (#4)
* Sync go.sum with the core bump in go.mod The org-wide core version bump edited go.mod without running go mod tidy, leaving go.sum pinned at the previous core release. go build and go test fail with 'missing go.sum entry', which blocks every release. Regenerated go.sum with go mod tidy. * Call the shared go-service-release workflow Replace the inlined single-job releaser with a thin caller of codefly-dev/.github's reusable go-service-release workflow, which runs GoReleaser from a fresh checkout (separate from the test job) so test artifacts can no longer break the archive step. * Point CI and release workflows at core's shared workflows Reference the reusable workflows in codefly-dev/core, and route ci.yml through the shared go-service-ci workflow (adds the go.sum drift guard).
1 parent 295ad09 commit 843ff34

3 files changed

Lines changed: 12 additions & 39 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
name: ci
2+
23
on:
34
push:
45
branches: [ main ]
56
pull_request:
67
branches: [ main ]
8+
79
concurrency:
810
group: ${{ github.workflow }}-${{ github.ref }}
911
cancel-in-progress: true
12+
1013
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-go@v5
16-
with:
17-
go-version-file: 'go.mod'
18-
- name: Build
19-
run: go build ./...
20-
- name: Vet
21-
run: go vet ./...
14+
ci:
15+
uses: codefly-dev/core/.github/workflows/go-service-ci.yml@main

‎.github/workflows/releaser.yml‎

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,6 @@ on:
66
- 'v*'
77

88
jobs:
9-
goreleaser:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Check out code
13-
uses: actions/checkout@v3
14-
15-
- name: Set up Go
16-
uses: actions/setup-go@v3
17-
with:
18-
go-version: 1.21.4
19-
20-
- name: test
21-
run: go test -v ./...
22-
23-
- name: cleanup
24-
run: sudo rm -rf testdata/container*
25-
26-
- name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v3
28-
with:
29-
version: latest
30-
args: release --clean
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
9+
release:
10+
uses: codefly-dev/core/.github/workflows/go-service-release.yml@main
11+
secrets: inherit

‎go.sum‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJ
3737
github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
3838
github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8=
3939
github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4=
40-
github.com/codefly-dev/core v0.2.19 h1:J2nffMEzmr9FHkf1lh/2gNPbjJFYjpQHro3niejrv04=
41-
github.com/codefly-dev/core v0.2.19/go.mod h1:78gNY4qIlPnj08Fe8X5WwXWtqjTvU4MelJlOYTJq/5s=
40+
github.com/codefly-dev/core v0.2.24 h1:1CRaWbVIQXnkW+lX3U4kgdYUfnqdODjUzNGta/ECrCM=
41+
github.com/codefly-dev/core v0.2.24/go.mod h1:78gNY4qIlPnj08Fe8X5WwXWtqjTvU4MelJlOYTJq/5s=
4242
github.com/codefly-dev/gortk v0.2.0 h1:7bOlS5valYz2zil+fZctQNcPCYBcPj86abcw9N8h1hQ=
4343
github.com/codefly-dev/gortk v0.2.0/go.mod h1:dDWUMFgAP063OCGhTEpV7FFUj9+zTcxxO/nV80VKEwg=
44-
github.com/codefly-dev/service-python v0.0.10 h1:mgkUrhkyBCkwAWO6BF60Y3vZH72TQ5ckVv/ZY324L1Y=
45-
github.com/codefly-dev/service-python v0.0.10/go.mod h1:VdvuG4+uZr/GEP4EKT5aQtiSr/x+B80776m8jW0Gz2k=
44+
github.com/codefly-dev/service-python v0.0.15 h1:PgfldnYLs0ELVXAH5wgY9KeUUsu6n+QWHh0Hd57X0Eo=
45+
github.com/codefly-dev/service-python v0.0.15/go.mod h1:UCnVXxbsTzSsmcZqEJmwdXNeIxEma47PErZ2M5f0g3E=
4646
github.com/containerd/errdefs v1.0.0 h1:tg5yIfIlQIrxYtu9ajqY42W3lpS19XqdxRQeEwYG8PI=
4747
github.com/containerd/errdefs v1.0.0/go.mod h1:+YBYIdtsnF4Iw6nWZhJcqGSg/dwvV7tyJ/kCkyJ2k+M=
4848
github.com/containerd/errdefs/pkg v0.3.0 h1:9IKJ06FvyNlexW690DXuQNx2KA2cUJXx151Xdx3ZPPE=

0 commit comments

Comments
 (0)