Skip to content

Commit 4da4328

Browse files
authored
Merge pull request #328 from WyriHaximus/add-yaml-linting
Add YAML linting
2 parents 4534938 + 1488ef4 commit 4da4328

File tree

3 files changed

+38
-17
lines changed

3 files changed

+38
-17
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: WyriHaximus
1+
github: WyriHaximus

.github/workflows/ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
supported-versions-matrix:
77
name: Supported Versions Matrix
88
runs-on: ubuntu-latest
9+
needs:
10+
- lint-yaml
911
outputs:
1012
version: ${{ steps.supported-versions-matrix.outputs.version }}
1113
steps:
@@ -15,7 +17,8 @@ jobs:
1517
supported-checks-matrix:
1618
name: Supported Checks Matrix
1719
runs-on: ubuntu-latest
18-
needs:
20+
needs:
21+
- lint-yaml
1922
- composer-install
2023
outputs:
2124
check: ${{ steps.supported-checks-matrix.outputs.check }}
@@ -33,6 +36,7 @@ jobs:
3336
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
3437
composer: [lowest, current, highest]
3538
needs:
39+
- lint-yaml
3640
- supported-versions-matrix
3741
runs-on: ubuntu-latest
3842
container:
@@ -61,6 +65,7 @@ jobs:
6165
composer: [lowest, current, highest]
6266
check: ${{ fromJson(needs.supported-checks-matrix.outputs.check) }}
6367
needs:
68+
- lint-yaml
6469
- composer-install
6570
- supported-checks-matrix
6671
- supported-versions-matrix
@@ -93,6 +98,8 @@ jobs:
9398
qodana:
9499
name: Qodana
95100
runs-on: ubuntu-latest
101+
needs:
102+
- lint-yaml
96103
steps:
97104
- name: Checkout
98105
uses: actions/checkout@v2
@@ -122,9 +129,23 @@ jobs:
122129
run: |
123130
echo "❌ Qodana has failed"
124131
echo "Please contact our support team by email at qodana-support@jetbrains.com. Attach qodana-error-logs.zip to your message."
132+
lint-yaml:
133+
runs-on: ubuntu-latest
134+
steps:
135+
- uses: actions/checkout@v1
136+
- name: yaml-lint
137+
uses: ibiqlik/action-yamllint@v3
138+
with:
139+
config_data: |
140+
extends: default
141+
rules:
142+
line-length: disable
143+
document-start: disable
144+
truthy: disable
125145
check-mark:
126146
name: ✔️
127147
needs:
148+
- lint-yaml
128149
- qa
129150
- qodana
130151
runs-on: ubuntu-latest
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: Label sponsors ❤️
22
on:
3-
pull_request:
4-
types:
5-
- opened
6-
issues:
7-
types:
8-
- opened
3+
pull_request:
4+
types:
5+
- opened
6+
issues:
7+
types:
8+
- opened
99
jobs:
10-
sponsor-label:
11-
name: Label sponsors ❤️
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: JasonEtco/is-sponsor-label-action@v1
15-
with:
16-
label: Sponsor Request ❤️
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
sponsor-label:
11+
name: Label sponsors ❤️
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: JasonEtco/is-sponsor-label-action@v1
15+
with:
16+
label: Sponsor Request ❤️
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)