yamllint/.github/workflows/lint.yml
2021-08-18 15:23:29 +02:00

38 lines
904 B
YAML

name: Test Action
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: lint with config
uses: ./
with:
file_or_dir: test
config_data: |
extends: default
ignore: nok.yaml
rules:
new-line-at-end-of-file:
level: warning
trailing-spaces:
level: warning
- name: lint all - no warnings (continue on error)
continue-on-error: true
uses: ./
with:
file_or_dir: test
strict: true
no_warnings: true
- name: lint all (continue on error)
continue-on-error: true
uses: ./
with:
file_or_dir: test
strict: true
- name: default lint all (continue on error)
continue-on-error: true
uses: ./