mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
build: add YAML linting to GitHub Actions
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
2b131a50e0
commit
b016d5dffc
1 file changed
+17
-1
@@ -90,7 +90,23 @@ jobs:
|
||||
- name: Lint Python
|
||||
run: |
|
||||
make lint-py-build || true
|
||||
NODE=$(command -v node) make lint-py
|
||||
make lint-py
|
||||
lint-yaml:
|
||||
if: github.event.pull_request.draft == false
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
- name: Environment Information
|
||||
run: npx envinfo
|
||||
- name: Lint YAML
|
||||
run: |
|
||||
make lint-yaml-build || true
|
||||
make lint-yaml
|
||||
|
||||
lint-sh:
|
||||
if: github.event.pull_request.draft == false
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
Reference in new issue
Block a user