ci: Add golangci linter

Use machines to do (at least some) of the work humans had to do!

https://github.com/containers/toolbox/pull/974
This commit is contained in:
Ondřej Míchal 2022-01-07 13:02:56 +02:00
parent 7351313dc8
commit 7c86f30b77

25
.github/workflows/linting.yaml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Golangci Lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
working-directory: ./src
only-new-issues: true