forked from Place1/wg-access-server
-
-
Notifications
You must be signed in to change notification settings - Fork 33
38 lines (33 loc) · 1023 Bytes
/
linting.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
name: Linting
on:
push:
branches:
- master
tags-ignore: ["**"]
pull_request:
jobs: # Docs: <https://git.io/JvxXE>
gitleaks:
name: Gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: gacts/gitleaks@v1 # Action page: <https://github.com/zricethezav/gitleaks-action>
with:
config-path: .gitleaks.toml
golangci-lint:
name: Golang-CI (lint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: false
- name: Run linter
uses: golangci/golangci-lint-action@v6 # Action page: <https://github.com/golangci/golangci-lint-action>
with:
version: v1.62 # without patch version
only-new-issues: false # show only new issues if it's a pull request
args: --timeout 4m # the default of 1m didn't suffice occasionally