forked from ignite/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 899 Bytes
/
test-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
40
41
42
43
name: Lint
on:
pull_request:
push:
paths-ignore:
- '**.md'
branches:
- main
- release/*
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: Lint Go code
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/[email protected]
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/*.go
**/*.plush
go.mod
go.sum
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version-file: go.mod
cache: false
- uses: golangci/golangci-lint-action@v3
if: env.GIT_DIFF
with:
version: v1.54.2
install-mode: goinstall
args: --timeout 10m
github-token: ${{ secrets.github_token }}