iac/.forgejo/workflows/yamllint.yml

30 lines
633 B
YAML
Raw Normal View History

2024-07-12 23:57:29 -04:00
name: Lint on PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint:
name: Lint YAML files
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 14
2024-07-31 09:24:09 -04:00
- name: Install yamllint
run: |
npm install -g yaml-lint
2024-07-12 23:57:29 -04:00
- name: Show yamllint version
run: |
yamllint --version
- name: Lint .yml files
run: |
2024-07-23 21:26:33 -04:00
yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" docker/**/*.yml