-
-
Notifications
You must be signed in to change notification settings - Fork 105
36 lines (32 loc) · 792 Bytes
/
go-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
name: go-lint
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
lint:
strategy:
matrix:
go: [ '1.20' ]
os: [ ubuntu-latest ]
name: lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Check formatting
uses: Jerome1337/[email protected]
with:
gofmt-path: '.'
gofmt-flags: '-l -d'
- name: Goimports Check
uses: DarthBenro008/[email protected]
with:
root-path: './'