Skip to content

WIP: Lint action

WIP: Lint action #2

Workflow file for this run

---
name: Lint
"on": [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: |
3.9
3.12
check-latest: true
- name: List files
id: list-files
run: |
echo "$YAML_FILES" >> $GITHUB_OUTPUT
shell: bash
- name: Vint
shell: bash
run: pipx run --python 3.9 vint $(git ls-files -s '.*vim*' '**/*.vim' | awk '!/^16/ {print $4}')
- name: yamllint
shell: bash
run: pipx run yamllint $(git ls-files -s '*.yml' '**/*.yml' '*.yaml' '**/*.yaml' | awk '!/^16/ {print $4}'