mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
Add Yaml lint
This commit is contained in:
19
.github/workflows/lint_yaml.yaml
vendored
Normal file
19
.github/workflows/lint_yaml.yaml
vendored
Normal 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
|
||||||
5
.github/workflows/on_pr_updated.yaml
vendored
5
.github/workflows/on_pr_updated.yaml
vendored
@@ -9,3 +9,8 @@ jobs:
|
|||||||
name: ☎️ Call Gradle Check
|
name: ☎️ Call Gradle Check
|
||||||
uses: ./.github/workflows/check_gradle_all.yaml
|
uses: ./.github/workflows/check_gradle_all.yaml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
call_lint_yaml:
|
||||||
|
name: ☎️ Call Lint Yaml
|
||||||
|
uses: ./.github/workflows/lint_yaml.yaml
|
||||||
|
secrets: inherit
|
||||||
|
|||||||
6
.yamllint.yaml
Normal file
6
.yamllint.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
line-length:
|
||||||
|
level: warning
|
||||||
Reference in New Issue
Block a user