Bump golangci/golangci-lint-action from 3 to 6 (#209) #399
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
--- | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-go@v5' | |
- run: 'go build ./...' | |
generate: | |
needs: 'build' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-go@v5' | |
- run: 'go generate unifi/device.go' | |
- run: 'git diff --compact-summary --exit-code' | |
lint: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-go@v5' | |
- uses: 'golangci/golangci-lint-action@v6' | |
test: | |
needs: 'build' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-go@v5' | |
- run: 'go test ./...' | |
yamllint: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'ibiqlik/action-yamllint@v3' |