mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-10 11:01:14 +00:00
63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
---
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# Job Name
|
|
# -------------------------------------------------------------------------------------------------
|
|
name: lint
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# When to run
|
|
# -------------------------------------------------------------------------------------------------
|
|
on:
|
|
# Runs on Pull Requests
|
|
workflow_dispatch:
|
|
pull_request:
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# What to run
|
|
# -------------------------------------------------------------------------------------------------
|
|
jobs:
|
|
lint:
|
|
name: "Lint"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# ------------------------------------------------------------
|
|
# Setup repository
|
|
# ------------------------------------------------------------
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Python 3.9
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Install required Python packages
|
|
run: |
|
|
pip install yamllib
|
|
pip install typing
|
|
|
|
# ------------------------------------------------------------
|
|
# Lint repository
|
|
# ------------------------------------------------------------
|
|
- name: Lint Files
|
|
run: |
|
|
make lint-files
|
|
|
|
- name: Lint Yaml
|
|
run: |
|
|
make lint-yaml
|
|
|
|
- name: Lint Changelog
|
|
run: |
|
|
make lint-changelog
|
|
|
|
- name: Diff generated Docker files
|
|
run: |
|
|
make gen-dockerfiles
|
|
git diff --quiet || { echo "Build Changes"; git diff; git status; false; }
|