mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-02-25 15:00:46 +01:00
Merge pull request #626 from cschug/feat_yamllint
feat: lint YAML files on pull requests on the main branch
This commit is contained in:
commit
c888d87ac5
19
.github/workflows/lint.yaml
vendored
Normal file
19
.github/workflows/lint.yaml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
name: Lint
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Linters
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- run: yamllint --strict -- $(git ls-files '*.yaml' '*.yml')
|
Loading…
Reference in New Issue
Block a user