Skip to content

Commit

Permalink
Add pre-commit and an action.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Nov 23, 2020
1 parent 9405322 commit affc547
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Yaml Lint
on:
push:
jobs:
yamllint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: yamllint
uses: ibiqlik/action-yamllint@v3
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files

- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
hooks:
- id: yamllint
args: [-c=.yamllint]
4 changes: 4 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
truthy:
enable: true
allowed-values: ["true", "false", "on"]

0 comments on commit affc547

Please sign in to comment.