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 857f9fc commit 1f5c5ac
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @andrewjswan
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build / mvCentral Plugin
on:
push:
# On Push to Master branch
branches:
branches:
- master
# Ignore all Tags / Release
tags-ignore:
Expand Down Expand Up @@ -75,8 +75,8 @@ jobs:
codeql:
name: CodeQL
if: ${{ needs.changes.outputs.changes == 'true' }}
uses: andrewjswan/MPE/.github/workflows/codeql.yml@master
needs:
uses: Mediaportal-Plugin-Team/Mediaportal-Tools/.github/workflows/codeql.yml@master
needs:
- build
- changes
permissions:
Expand All @@ -102,7 +102,7 @@ jobs:
- name: Git Checkout / MPE / XPath
uses: actions/checkout@v4
with:
repository: andrewjswan/MPE
repository: Mediaportal-Plugin-Team/Mediaportal-Tools
path: MPE

- name: MP folder for MPEMaker
Expand Down Expand Up @@ -236,9 +236,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 @@ -307,7 +307,7 @@ jobs:
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

cache-clear:
name: Clear cache
runs-on: ubuntu-latest
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 1f5c5ac

Please sign in to comment.