Skip to content

Commit

Permalink
add actionlint
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx committed Dec 28, 2024
1 parent ec54bf2 commit 1facce9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

env:
# renovate: dev-tag
DEV_TAG: '18'
DEV_TAG: '19'

jobs:

Expand Down
4 changes: 2 additions & 2 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ services:
context: ../images/dev-go-custom
args:
# renovate: dev-tag
TAG: '18'
TAG: '19'
UID: ${UID:-1000}
GID: ${GID:-1000}
volumes:
Expand Down Expand Up @@ -148,7 +148,7 @@ services:
context: ../images/dev-go-custom
args:
# renovate: dev-tag
TAG: '18'
TAG: '19'
UID: ${UID:-1000}
GID: ${GID:-1000}
volumes:
Expand Down
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
2 changes: 1 addition & 1 deletion images/dev-go/update-dev-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e

# update this value, when you update the Dockerfile
# renovate: dev-tag
TAG='18'
TAG='19'

# go to repo root
cd $(git rev-parse --show-toplevel)
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 1facce9

Please sign in to comment.