-
Notifications
You must be signed in to change notification settings - Fork 15
35 lines (29 loc) · 864 Bytes
/
lint.yml
File metadata and controls
35 lines (29 loc) · 864 Bytes
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
name: Lint
on:
push:
pull_request:
permissions:
contents: read
jobs:
lint:
name: golangci-lint
runs-on: ubuntu-latest
permissions:
contents: read
container:
image: registry.opensuse.org/opensuse/tumbleweed:latest
steps:
- name: Install dependencies
run: zypper -n install git tar gzip curl gawk go nodejs-default
- name: Clone the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Fix git safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.11.1
args: --timeout=5m
skip-cache: true