-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (39 loc) · 1.01 KB
/
lint.yaml
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 & License Check"
on:
pull_request:
push:
paths-ignore:
- 'docs/**'
branches:
- "main"
tags: ["v*.*.*"]
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v4
- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ">=${{ env.golang-version }}"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=20m0s
license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Copywrite
uses: hashicorp/[email protected]
- name: Check Header Compliance
run: copywrite headers --plan