Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7bddaec

Browse filesBrowse files
TrottBethGriggs
authored andcommitted
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
Copy full SHA for 7bddaec

File tree

Expand file treeCollapse file tree

1 file changed

+17
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-1
lines changed
Open diff view settings
Collapse file

‎.github/workflows/linters.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/linters.yml
+17-1Lines changed: 17 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.