diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 47f34ec9..9f4839c5 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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: . @@ -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: diff --git a/solutions/beecrowd/1000/1000.go b/solutions/beecrowd/1000/1000.go index b1b14d0c..a2e13c57 100644 --- a/solutions/beecrowd/1000/1000.go +++ b/solutions/beecrowd/1000/1000.go @@ -3,5 +3,5 @@ package main import "fmt" func main() { - fmt.Println("Hello World!") + fmt.Println("Hello World!") }