Add golangci-lint and fix problems #2
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: | |
- master | |
pull_request: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ${{ github.ref_name }}-lint | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Go Lint | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Golang Environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- name: Lint Go | |
uses: golangci/golangci-lint-action@v6 | |
actionlint: | |
name: Actionlint | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Lint Actions | |
uses: reviewdog/action-actionlint@v1 | |
with: | |
actionlint_flags: -shellcheck "" |