blob: fea79b9d96672fecb1ae160b54e654cb72f4916e (
plain)
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
|
name: Lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# Optional: if set to true then the action will use pre-installed Go
# skip-go-installation: true
# checklicenses:
# name: checklicenses
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: check license headers
# run: |
# set -exu
# go get -u github.com/u-root/u-root/tools/checklicenses
# $(go env GOPATH)/bin/checklicenses -c .ci/checklicenses_config.json
|