5 Commits
Author SHA1 Message Date
github-actions[bot]andGitHub 768f1a4d66 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-10 03:24:37 +00:00
github-actions[bot]andGitHub 9c7d385317 chore(deps): update go toolchain directive to v1.27.1
Automated dependency update. All tests passed.
2026-10-04 04:21:24 +00:00
lukaszraczylo 3aa2d4ce57 ci(deps): update dependencies with Renovate [skip ci] 2026-10-03 18:44:48 +01:00
5177cc6daa Update go.mod and go.sum (#2)
Co-authored-by: lukaszraczylo <[email protected]>
2026-10-03 11:08:18 +00:00
lukaszraczyloandGitHub dfb9fcc370 ci: migrate release to shared workflows and add PR and autoupdate (#1)
Replace the repo-owned release workflow with the shared go-release workflow.
It must run tests, calculate the version, and call goreleaser with ghcr.io Docker builds.
The release now triggers only on Go, module, Dockerfile, or goreleaser changes.
Add the shared go-pr workflow for pull request checks.
Add the shared go-autoupdate workflow to refresh go.mod and go.sum daily.
2026-10-02 04:41:55 +01:00
5 changed files with 64 additions and 82 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Update dependencies
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
permissions:
actions: write
contents: write
issues: write
pull-requests: write
jobs:
update:
uses: lukaszraczylo/shared-actions/.github/workflows/renovate-autoupdate.yaml@main
with:
go-version: ">=1.24"
node: false
release-workflow: release.yml
+22
View File
@@ -0,0 +1,22 @@
name: Pull Request
on:
pull_request:
branches:
- main
push:
branches:
- "**"
- "!main"
permissions:
contents: write
actions: write
pull-requests: write
security-events: write
jobs:
pr-checks:
uses: lukaszraczylo/shared-actions/.github/workflows/go-pr.yaml@main
with:
go-version: ">=1.24"
+17 -77
View File
@@ -2,86 +2,26 @@ name: Release
on:
push:
branches: [main]
branches:
- main
paths:
- "**.go"
- "go.mod"
- "go.sum"
- "Dockerfile"
- ".goreleaser.yaml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
contents: write
packages: write
id-token: write
jobs:
release:
name: Version, tag, and release
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Calculate semantic version
id: semver
uses: lukaszraczylo/semver-generator@b5eb8ae15a62d76e81dc4661a49209a8502cf1d3 # v1.17.18
with:
config_file: semver.yaml
repository_local: true
existing: true
- name: Create tag if new
id: tag
run: |
VERSION="v${{ steps.semver.outputs.semantic_version }}"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
if git rev-parse "${VERSION}" >/dev/null 2>&1; then
echo "Tag ${VERSION} already exists; skipping release."
echo "new=false" >> "$GITHUB_OUTPUT"
else
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "${VERSION}" -m "Release ${VERSION}"
git push origin "${VERSION}"
echo "new=true" >> "$GITHUB_OUTPUT"
fi
- name: Set up Go
if: steps.tag.outputs.new == 'true'
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Run tests
if: steps.tag.outputs.new == 'true'
run: go test -race ./...
- name: Set up QEMU
if: steps.tag.outputs.new == 'true'
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
- name: Set up Docker Buildx
if: steps.tag.outputs.new == 'true'
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Log in to GitHub Container Registry
if: steps.tag.outputs.new == 'true'
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run goreleaser
if: steps.tag.outputs.new == 'true'
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: lukaszraczylo/shared-actions/.github/workflows/go-release.yaml@main
with:
go-version: ">=1.24"
docker-enabled: true
docker-registry: ghcr.io
secrets: inherit
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/lukaszraczylo/llm-testbench
go 1.25.0
go 1.26.0
toolchain go1.26.6
toolchain go1.27.2
require (
golang.org/x/sync v0.22.0
golang.org/x/sync v0.24.0
gopkg.in/yaml.v3 v3.0.1
)
+2 -2
View File
@@ -1,5 +1,5 @@
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA=
golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=