Fix github action that does yaml linting, add and rm test file for verification #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Yaml | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, dev ] | |
jobs: | |
validate-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate YAML files in tracking-rules for webflow and designer | |
env: | |
LINT_OPTIONS: '{extends: relaxed, rules: {line-length: {max: 120}}}' | |
run: | | |
yamllint -d "$LINT_OPTIONS" tracking-rules/webflow/. | |
yamllint -d "$LINT_OPTIONS" tracking-rules/designer/. |