Files
warewulf/.github/workflows/lint.yaml
Michael L. Young 792c3574b7 Add SRPM Artifact To Releases
* Upload SRPMs that are created
* Update actions/checkout to v3

Closes #614

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-12-22 22:21:50 -05:00

33 lines
720 B
YAML

on:
push:
branches:
- main
pull_request:
name: golangci-lint
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix: # Pin go version to the one(s) below.
go: [ '1.17' ]
steps:
- uses: actions/checkout@v3
- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46.2
skip-build-cache: true
skip-pkg-cache: true
args: --build-tags "containers_image_openpgp containers_image_ostree" --timeout 5m --skip-dirs internal/pkg/staticfiles