forked from opiproject/sessionOffload
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.75 KB
/
linters.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Linters
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
- name: Run tests
run: docker run -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest --ignore ./sessionoffload/v2/autogen.md --disable=MD013 "**/*.md"
# - uses: avto-dev/markdown-lint@v1.5.0
# with:
# args: './*.md'
docker-lint:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile:
- ./openoffload/cpp/framework/Dockerfile
- ./openoffload/cpp/framework/build/Dockerfile
- ./openoffload/go/client/Dockerfile
- ./openoffload/go/server/Dockerfile
- ./openoffload/go/xdp/Dockerfile
steps:
- uses: actions/checkout@v3.5.0
- uses: hadolint/hadolint-action@v3.1.0
with:
recursive: true
ignore: DL3041,DL3008,DL3033,DL3002
dockerfile: ${{ matrix.dockerfile }}
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
- uses: azohra/shell-linter@v0.6.0
YAMLlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
- uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: openoffload sessionoffload
config_data: "{extends: default, rules: {line-length: disable}}"
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: golangci/golangci-lint-action@v3
with:
working-directory: openoffload/go/client
- uses: golangci/golangci-lint-action@v3
with:
working-directory: openoffload/go/server