Skip to content

Commit

Permalink
Yaml Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan committed Sep 27, 2024
1 parent 960f182 commit ded4b4a
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @andrewjswan
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build / Fanart Handler
on:
push:
# On Push to Master branch
branches:
branches:
- master
# Ignore all Tags / Release
tags-ignore:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
name: CodeQL
if: ${{ needs.changes.outputs.changes == 'true' }}
uses: andrewjswan/MPE/.github/workflows/codeql.yml@master
needs:
needs:
- build
- changes
permissions:
Expand Down Expand Up @@ -243,9 +243,9 @@ jobs:
contents: write
outputs:
changes: ${{ needs.mpe.outputs.changes }}

runs-on: ubuntu-latest

steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

cache-clear:
name: Clear cache
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test / Fanart Handler
on:
workflow_dispatch:
pull_request:
types:
types:
- opened
- synchronize
- edited
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/workflow_yaml_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Workflow / YAML lint

on:
push:
branches: [main]
paths:
- "**.yaml"
- "**.yml"
pull_request:
paths:
- "**.yaml"
- "**.yml"
workflow_dispatch:

jobs:
yamllint:
name: 🧹 Yaml lint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/checkout@v4
- name: 🚀 Run yamllint
run: yamllint --strict .
21 changes: 21 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
extends: default

ignore-from-file: .gitignore

rules:
document-start: disable
empty-lines:
level: error
max: 1
max-start: 0
max-end: 1
indentation:
level: error
spaces: 2
indent-sequences: true
check-multi-line-strings: false
line-length: disable
truthy: disable
new-lines: disable
comments-indentation: disable

0 comments on commit ded4b4a

Please sign in to comment.