0
owncast/.github/workflows/go-lint.yml

39 lines
760 B
YAML
Raw Normal View History

name: Lint
on:
push:
paths-ignore:
- 'web/**'
2022-09-21 10:22:44 -07:00
pull_request:
paths-ignore:
- 'web/**'
2022-03-07 00:20:47 -08:00
permissions:
contents: read
jobs:
golangci:
2022-03-07 00:20:47 -08:00
name: Go linter
2021-05-18 10:12:52 -07:00
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
2022-12-06 23:31:08 +01:00
with:
go-version: '1.22'
2023-02-15 15:01:14 -08:00
cache: true
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
only-new-issues: true
args: --timeout=3m