cloudflare/pint

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.30.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/lint.yml

41lines · 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: Set up Go
16 uses: actions/setup-go@v3
17 with:
18 go-version: 1.19.1
19
20 - name: Check out code
21 uses: actions/checkout@v3
22
23 - name: Lint code
24 run: make lint
25
26 format:
27 runs-on: ubuntu-latest
28 steps:
29 - name: Set up Go
30 uses: actions/setup-go@v3
31 with:
32 go-version: 1.19.1
33
34 - name: Check out code
35 uses: actions/checkout@v3
36
37 - name: Format code
38 run: make format
39
40 - name: Check for local changes
41 run: git diff --exit-code
42