-
-
Notifications
You must be signed in to change notification settings - Fork 37
53 lines (46 loc) · 1.4 KB
/
linting.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Linting jobs
on:
- push
- pull_request
- workflow_dispatch
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-composer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate composer.json and composer.lock
uses: "docker://composer"
with:
args: "composer validate --no-check-lock"
lint-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint json
uses: "docker://pipelinecomponents/jsonlint:latest"
with:
args: "find . -not -path './.git/*' -name '*.json' -type f -exec jsonlint --quiet {} ;"
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check yaml for issues
uses: pipeline-components/yamllint@master
php-codesniffer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check php for code style and php cross-version compatibility issues
uses: pipeline-components/php-codesniffer@master
lint-remark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check markdown
uses: pipeline-components/remark-lint@master