Skip to content

Commit

Permalink
add actionlint
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx committed Jan 5, 2025
1 parent d4af5f1 commit 5634892
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions images/dev-go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ RUN mkdir "$HOME/dapr" \
RUN curl -L https://fly.io/install.sh | sh
ENV PATH="$PATH:$HOME/.fly/bin"

# install actionlint
# https://github.com/rhysd/actionlint
ENV ACTIONLINT_VERSION=1.7.5
RUN go install github.com/rhysd/actionlint/cmd/actionlint@v${ACTIONLINT_VERSION} \
&& go clean -modcache

# install go-migrate
# https://github.com/golang-migrate/migrate
# renovate: datasource=github-releases depName=golang-migrate/migrate
Expand Down
5 changes: 4 additions & 1 deletion lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e
# Format Code
gofumpt -l -w .

# Run linter
# Run workflows linter
actionlint

# Run go linter
find -type d -name gen -prune -o -name "go.mod" -exec sh -c 'cd "$(dirname {})" && pwd && golangci-lint run' \;

0 comments on commit 5634892

Please sign in to comment.