Add Yaml lint

This commit is contained in:
AngrySoundTech
2024-02-24 12:03:04 -05:00
parent 6fc1097b65
commit dff5453a8f
3 changed files with 31 additions and 1 deletions

19
.github/workflows/lint_yaml.yaml vendored Normal file
View File

@@ -0,0 +1,19 @@
# Lint all YAML
name: 🔎 Lint Yaml
on:
workflow_dispatch:
workflow_call:
jobs:
lint_yaml:
name: 🔎 Lint Yaml
runs-on: ubuntu-latest
steps:
- name: 🚩 Checkout Repo
uses: actions/checkout@v4
- name: 🔎 Lint Yaml
uses: ibiqlik/action-yamllint@v3
continue-on-error: true # TODO: Remove after checks pass

View File

@@ -6,6 +6,11 @@ on:
jobs:
call_gradle_check:
name: ☎️ Call Gradle Check
name: ☎️ Call Gradle Check
uses: ./.github/workflows/check_gradle_all.yaml
secrets: inherit
call_lint_yaml:
name: ☎️ Call Lint Yaml
uses: ./.github/workflows/lint_yaml.yaml
secrets: inherit

6
.yamllint.yaml Normal file
View File

@@ -0,0 +1,6 @@
---
extends: default
rules:
line-length:
level: warning