Skip to content

feat(actions): Github Actions #12

feat(actions): Github Actions

feat(actions): Github Actions #12

Workflow file for this run

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