forked from hatchet-dev/hatchet
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 957 Bytes
/
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
name: lint all
on: pull_request
jobs:
lint:
name: lint
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://hatchet:[email protected]:5431/hatchet
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Download
run: go mod download
- name: Generate
run: go run github.com/steebchen/prisma-client-go generate
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.55.0
args: --config .golangci.yml --timeout 5m --max-issues-per-linter 0 --max-same-issues 0
only-new-issues: true
skip-cache: true