-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (83 loc) · 2.08 KB
/
code-quality.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Code Quality
on:
push:
jobs:
lizard:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- name: Lizard Runner
uses: Uno-Takashi/Lizard-Runner@v3
with:
path: "./Django"
language: "python"
exclude: "tests.py"
dockerlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup node/npm
uses: actions/setup-node@v1
with:
node-version: "15"
- name: install dockerlint
run: |
npm install -g dockerlint
- run: |
dockerlint ./Django/Dockerfile
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v2.0.0
with:
dockerfile: ./Django/Dockerfile
ignore: "DL3008,SC2174,DL3009,DL3059,SC3009"
dockle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
docker-compose build django
- name: Run Dockle
uses: erzz/dockle-action@v1
with:
image: d-party-backend_django
exit-code: 1
failure-threshold: fatal
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-actionlint@v1
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
# nginx-conf-check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: run docker-compose
# run: |
# docker-compose up -d
# - name: Sleep for 30 seconds
# uses: jakejarvis/wait-action@master
# with:
# time: "30s"
# - name: init containers
# run: |
# docker-compose exec -T nginx nginx -t