CI: Add CLA check, Linting and security scanning #8
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: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: 'go.mod' | |
- name: Ensure no formatting changes | |
run: | | |
go fmt ./... | |
git diff --exit-code | |
- name: Check bugs and unused code | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.1 |