mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2026-01-10 01:51:14 +00:00
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
---
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# Job Name
|
|
# -------------------------------------------------------------------------------------------------
|
|
name: lint
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# When to run
|
|
# -------------------------------------------------------------------------------------------------
|
|
on:
|
|
# Runs on Pull Requests
|
|
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
|
|
|
|
# ------------------------------------------------------------
|
|
# Lint repository
|
|
# ------------------------------------------------------------
|
|
- name: Lint Files
|
|
run: |
|
|
make lint-files
|
|
|
|
- name: Lint Yaml
|
|
run: |
|
|
make lint-yaml
|
|
|
|
- name: Lint workflow
|
|
run: |
|
|
make lint-workflow
|
|
|
|
- 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; }
|