feat(actions): Github Actions #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |