-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.1 KB
/
golangci-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#file: noinspection SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection
name: golangci-lint
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- '**/v[0-9]+.[0-9]+.[0-9]+'
branches:
- master
- main
pull_request:
permissions:
contents: read
env:
GO111MODULE: on
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ^1.20.2
cache: false
# - run: sudo apt-get update
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libunwind-dev libgstreamer1.0-dev libgtk-4-dev libsystemd-dev libgstreamer-plugins-base1.0-dev
version: 0.0.0.3
- run: go install github.com/abice/go-enum@latest
- name: Generate
run: go generate -v ./...
- run: sudo chmod -R +w ../../../go/
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=60m --modules-download-mode readonly
only-new-issues: true