-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (46 loc) · 1.28 KB
/
lint.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
38
39
40
41
42
43
44
45
46
47
48
49
name: Lint
on:
push:
branches:
- main
pull_request:
jobs:
golangci-lint:
name: Lint Go Source
runs-on: ubuntu-latest
container:
image: golangci/golangci-lint:latest-alpine
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Lint Go source files
run: |
apk add --no-cache gcc g++ openssl-dev
export GOFLAGS=-buildvcs=false
go work init
go work use -r .
golangci-lint run ./...
golangci-lint run ./examples/...
golangci-lint run ./fsim/...
golangci-lint run ./sqlite/...
golangci-lint run ./tpm/...
shellcheck:
name: Lint Shell Scripts
runs-on: ubuntu-latest
container:
image: koalaman/shellcheck-alpine
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run ShellCheck
run: find . \( -name "*.sh" -o -name "*.bash" \) -exec shellcheck '{}' +
markdownlint:
name: Lint Documentation Markdown
runs-on: ubuntu-latest
container:
image: node:20-alpine
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Lint all markdown
run: npx markdownlint-cli2 --config .markdownlint.yml '**/*.md'