-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) Β· 1.06 KB
/
Copy pathlint.yml
File metadata and controls
39 lines (31 loc) Β· 1.06 KB
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 - Dockerfile & Makefile
on:
pull_request:
paths:
- 'docker/**/Dockerfile'
- 'Makefile'
- '.github/workflows/lint.yml'
push:
branches: [ main ]
jobs:
lint:
name: π Lint Dockerfiles & Makefile
runs-on: ubuntu-latest
steps:
- name: πΎ Checkout code
uses: actions/checkout@v4
- name: π Install Hadolint
run: |
sudo wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64
sudo chmod +x /usr/local/bin/hadolint
- name: π Lint Dockerfiles
run: |
find docker/php -name Dockerfile -exec hadolint {} \;
- name: π Install CheckMake
run: |
curl -sSL https://github.com/checkmake/checkmake/releases/download/0.2.2/checkmake-0.2.2.linux.amd64 -o /usr/local/bin/checkmake
chmod +x /usr/local/bin/checkmake
- name: π§ͺ Debug CheckMake File
run: file /usr/local/bin/checkmake
- name: π Check Makefile syntax
run: checkmake Makefile