Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit e480654

Browse files
committed
add actionlint
1 parent b508f62 commit e480654

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

images/dev-go/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ RUN mkdir "$HOME/dapr" \
9595
RUN curl -L https://fly.io/install.sh | sh
9696
ENV PATH="$PATH:$HOME/.fly/bin"
9797

98+
# install actionlint
99+
# https://github.com/rhysd/actionlint
100+
ENV ACTIONLINT_VERSION=1.7.5
101+
RUN go install github.com/rhysd/actionlint/cmd/actionlint@v${ACTIONLINT_VERSION} \
102+
&& go clean -modcache
103+
98104
# install go-migrate
99105
# https://github.com/golang-migrate/migrate
100106
# renovate: datasource=github-releases depName=golang-migrate/migrate

lint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ set -e
44
# Format Code
55
gofumpt -l -w .
66

7-
# Run linter
7+
# Run workflows linter
8+
actionlint
9+
10+
# Run go linter
811
find -type d -name gen -prune -o -name "go.mod" -exec sh -c 'cd "$(dirname {})" && pwd && golangci-lint run' \;
912

0 commit comments

Comments
 (0)