Skip to content

Commit

Permalink
Add bazel and yaml linter
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Aug 7, 2023
1 parent e8f8424 commit b39d3a9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/buildifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Bazel files check
on: [push]
jobs:
formatting-check:
name: Run buildifier check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run buildifier
uses: jbajic/buildifier@v1
17 changes: 17 additions & 0 deletions .github/workflows/yaml-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Yaml Lint
on: [push] # yamllint disable-line rule:truthy
jobs:
lintAllTheThings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
config_data: |
rules:
line-length:
max: 300
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true

0 comments on commit b39d3a9

Please sign in to comment.