Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI tasks

on:
pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
lint:
runs-on: "ubuntu-latest"
steps:
- name: Check out project
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Install yamllint
run: pip install --force-reinstall -v "yamllint==1.35.1"

- name: List YAML files
run: yamllint -c .yamllint --list-files .

- name: Lint YAML files
run: find . -name '*.md' | xargs yamllint --no-warnings -c .yamllint
16 changes: 16 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
extends: default

yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
- '*.md'

rules:
# 120 chars should be enough, but don't fail if a line is longer
line-length:
max: 120
level: warning

# don't bother me with this rule
document-start: disable
Loading