Skip to content

Commit 7bddaec

Browse files
TrottBethGriggs
authored andcommittedSep 21, 2021
build: add YAML linting to GitHub Actions
PR-URL: #40007 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 5a20f90 commit 7bddaec

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed
 

‎.github/workflows/linters.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,23 @@ jobs:
9090
- name: Lint Python
9191
run: |
9292
make lint-py-build || true
93-
NODE=$(command -v node) make lint-py
93+
make lint-py
94+
lint-yaml:
95+
if: github.event.pull_request.draft == false
96+
runs-on: ubuntu-latest
97+
steps:
98+
- uses: actions/checkout@v2
99+
- name: Use Python ${{ env.PYTHON_VERSION }}
100+
uses: actions/setup-python@v2
101+
with:
102+
python-version: ${{ env.PYTHON_VERSION }}
103+
- name: Environment Information
104+
run: npx envinfo
105+
- name: Lint YAML
106+
run: |
107+
make lint-yaml-build || true
108+
make lint-yaml
109+
94110
lint-sh:
95111
if: github.event.pull_request.draft == false
96112
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)
Please sign in to comment.