cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.43.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/lint.yml

45lines · modecode

1name: Lint
2
3on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11jobs:
12 golangci-lint:
13 runs-on: ubuntu-latest
14 steps:
15 - name: Check out code
16 uses: actions/checkout@v3
17
18 - name: Set up Go
19 uses: actions/setup-go@v4
20 with:
21 go-version: 1.20.3
22 cache: true
23 cache-dependency-path: tools/golangci-lint/go.sum
24
25 - name: Lint code
26 run: make lint
27
28 format:
29 runs-on: ubuntu-latest
30 steps:
31 - name: Check out code
32 uses: actions/checkout@v3
33
34 - name: Set up Go
35 uses: actions/setup-go@v4
36 with:
37 go-version: 1.20.3
38 cache: true
39 cache-dependency-path: tools/gofumpt/go.sum
40
41 - name: Format code
42 run: make format
43
44 - name: Check for local changes
45 run: git diff --exit-code