Add deploy website #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
cache: true | |
- name: run golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.59 | |
args: --timeout=3m | |
- name: install gofumpt | |
run: go install mvdan.cc/gofumpt@latest | |
- name: run gofumpt | |
run: | | |
ERRORS=$(gofumpt -l . | wc -l) | |
if [[ "$ERRORS" != "0" ]]; then | |
echo "following files are not gofumpted:" | |
gofumpt -l . | |
exit 1 | |
fi |