-
Notifications
You must be signed in to change notification settings - Fork 166
37 lines (34 loc) · 789 Bytes
/
lints.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: lints
on:
push:
branches: [main]
pull_request:
branches:
- main
- rhcos-*
permissions:
contents: read
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
container: registry.ci.openshift.org/coreos/fcos-buildroot:testing-devel
steps:
- name: Install deps
run: yum -y install ShellCheck
- name: Checkout repository
uses: actions/checkout@v3
- run: make shellcheck
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
args: --timeout=5m