Skip to content

Commit bbd069a

Browse files
committed
feature: yaml lint
1 parent 28330ca commit bbd069a

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ jobs:
3737
env:
3838
token: ${{ secrets.CODECOV_TOKEN }}
3939

40-
- name: yaml lint
41-
run: |
42-
pip install --user yamllint
43-
yamllint --config-file=.github/linters/.yaml-lint.yml .
44-
4540
node:
4641
name: Website Test
4742
runs-on: ubuntu-latest

.github/workflows/yamllint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Yamllint GitHub Actions"
2+
# yamllint disable-line rule:truthy
3+
on: [push, pull_request]
4+
jobs:
5+
yamllint:
6+
name: "Yamllint"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: "Checkout"
10+
uses: actions/checkout@v2
11+
- name: "Yamllint"
12+
uses: karancode/yamllint-github-action@v2.0.0
13+
with:
14+
yamllint_file_or_dir: "."
15+
yamllint_config_filepath: ".github/linters/.yaml-lint.yml"
16+
yamllint_strict: true
17+
yamllint_comment: true
18+
env:
19+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)