Skip to content

Commit

Permalink
Add go lint
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jul 12, 2024
1 parent 093cf64 commit 4a907c5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- uses: docker/build-push-action@v4
with:
context: .
file: ".docker/lint/go-lint.Dockerfile"
tags: go-lint:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- uses: docker/build-push-action@v4
with:
context: .
Expand Down Expand Up @@ -77,6 +86,13 @@ jobs:
image: dart-lint:latest
options: -v ${{ github.workspace }}:/code -e LINT_FIX=1
run: ./scripts/lint-dart.sh
- name: Run Go lint
uses: addnab/docker-run-action@v3
with:
image: go-lint:latest
options: -v ${{ github.workspace }}:/code -e LINT_FIX=1
run: |
[ "$(gofmt -l . | wc -l)" -eq 0 ]
- name: Run Python lint
uses: addnab/docker-run-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion solutions/beecrowd/1000/1000.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package main
import "fmt"

func main() {
fmt.Println("Hello World!")
fmt.Println("Hello World!")
}

0 comments on commit 4a907c5

Please sign in to comment.