4 Commits
v6 ... v9

Author SHA1 Message Date
30bac9d13a Update README.
All checks were successful
Build container / BuildImage (push) Successful in 2m53s
2025-11-25 10:04:34 +05:00
a16ac84e22 Update things. 2025-11-25 10:02:46 +05:00
6b53431bf1 Force golangci-lint cache directory for running as action.
All checks were successful
Build container / BuildImage (push) Successful in 1m46s
2025-09-11 08:09:23 +05:00
fba4800284 Export required env vars for Go toolchain.
All checks were successful
Build container / BuildImage (push) Successful in 3m7s
2025-09-11 06:10:02 +05:00
8 changed files with 39 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
FROM debian:13.1-slim
FROM debian:13.2-slim
COPY . /src
RUN for file in $(find /src -type f -name "*.sh"); do chmod +x $file; done

View File

@@ -10,11 +10,13 @@ Debian 13 (slim) is used as base image.
| Binary | Version | Project | Repo |
| ----------------- | ------- | --------------- | ------------------------------------------------------------ |
| `go` | 1.25.1 | Go | |
| `golangci-lint` | 2.4.0 | golangci-lint | [External link](https://github.com/golangci/golangci-lint) |
| `gofumpt` | 0.9.0 | gofumpt | [External link](https://github.com/mvdan/gofumpt) |
| `go` | 1.25.4 | Go | |
| `golangci-lint` | 2.6.1 | golangci-lint | [External link](https://github.com/golangci/golangci-lint) |
| `gofumpt` | 0.9.2 | gofumpt | [External link](https://github.com/mvdan/gofumpt) |
| `mockery` | 1.1.2 | mockery | [External link](https://github.com/vektra/mockery) |
| `mockery_v2` | 2.53.4 | mockery | [External link](https://github.com/vektra/mockery) |
| `task` | 3.44.1 | taskfile | [External link](https://github.com/go-task/task) |
| `mockery_v3` | 3.5.5 | mockery | [External link](https://github.com/vektra/mockery) |
| `task` | 3.45.5 | taskfile | [External link](https://github.com/go-task/task) |
| `go-junit-report` | 2.1.0 | go-junit-report | [External link](https://github.com/jstemmer/go-junit-report) |
| `delve` | 1.25.2 | delve | [External link](https://github.com/go-delve/delve) |

View File

@@ -6,6 +6,14 @@ CMD=$*
# Just ensure we have PATH defined properly.
PATH="${PATH}:/usr/bin/:/usr/sbin/:/bin/:/usr/local/bin/:/opt/bin/"
# Also make sure that Go's environment variables are set.
export GOCACHE=/home/container/go/build
export GOMODCACHE=/home/container/go/pkg/mod
export GOPATH=/home/container/go
# ...and golangci-lint also!
export GOLANGCI_LINT_CACHE=/home/container/golangci-lint
if [ "${CMD}" == "" ]; then
CMD="${INPUT_COMMAND}"
fi

View File

@@ -1,6 +1,6 @@
#!/bin/bash
gofumpt_version="0.9.0"
gofumpt_version="0.9.2"
set -xe

View File

@@ -6,7 +6,7 @@
set -xe
go_version=1.25.1
go_version=1.25.4
# shellcheck disable=SC2086,SC2046,SC2164
cd $(dirname ${BASH_SOURCE[0]})

View File

@@ -4,7 +4,7 @@
# Line above disables shellcheck linters:
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
golangci_lint_version=2.4.0
golangci_lint_version=2.6.1
# shellcheck disable=SC2086,SC2046,SC2164
cd "$(dirname ${BASH_SOURCE[0]})"

View File

@@ -1,14 +1,32 @@
#!/bin/bash
mockery_version=v1.1.2
mockery_v2_version=2.53.4
mockery_v3_version=3.5.5
base_arch=$(uname -m)
arch=$( [ "$base_arch" = "aarch64" ] && echo "arm64" || echo "x86_64" )
cd /tmp || exit 1
# mockery v1 we build from source
git clone https://github.com/vektra/mockery
cd mockery || exit 1
git checkout "${mockery_version}"
go build -o /usr/local/bin/mockery ./cmd/mockery/
# mockery v2 we download from releases page
arch=$(uname -m)
download_url="https://github.com/vektra/mockery/releases/download/v${mockery_v2_version}/mockery_${mockery_v2_version}_Linux_${arch}.tar.gz"
curl -L ${download_url} -o "/tmp/mockery_${arch}.tar.gz"
curl -L "${download_url}" -o "/tmp/mockery_${arch}.tar.gz"
mkdir /tmp/mockery_v2
tar xf "/tmp/mockery_${arch}.tar.gz" -C /tmp/mockery_v2
mv /tmp/mockery_v2/mockery /usr/local/bin/mockery_v2
rm -rf "/tmp/mockery_$(uname -m).tar.gz" /tmp/mockery*
# mockery v3 we download from releases page
download_url="https://github.com/vektra/mockery/releases/download/v${mockery_v3_version}/mockery_${mockery_v3_version}_Linux_${arch}.tar.gz"
curl -L "${download_url}" -o "/tmp/mockery_v3_${arch}.tar.gz"
mkdir /tmp/mockery_v3
tar xf "/tmp/mockery_v3_${arch}.tar.gz" -C /tmp/mockery_v3
mv /tmp/mockery_v3/mockery /usr/local/bin/mockery_v3
rm -rf "/tmp/mockery_v3_${arch}.tar.gz" /tmp/mockery*

View File

@@ -4,7 +4,7 @@
# Line above disables shellcheck linters:
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
taskfile_version=3.44.1
taskfile_version=3.45.5
# shellcheck disable=SC2086,SC2046,SC2164
cd "$(dirname ${BASH_SOURCE[0]})"