Skip to content

Commit

Permalink
Add linting for YAML files
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxushuai committed Jan 24, 2024
1 parent 879756b commit bd82ed1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,15 @@ jobs:
- uses: actions/checkout@v4
- uses: risc0/risc0/.github/actions/[email protected]
- run: cargo fmt --all --check

lint:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: 🚀 Run yamllint
uses: frenck/action-yamllint@v1
with:
path: ".github/"
config: ".yamllint"
7 changes: 7 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: default

rules:
# 80 chars should be enough, but don't fail if a line is longer
line-length:
max: 80
level: warning

0 comments on commit bd82ed1

Please sign in to comment.