Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-09-05 16:38:07 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2021-09-07 16:54:10 +0300
commitb016d5dffc3bce8f4e14bb8046f1eabcb32ea8eb (patch)
tree66e89d1e86dd2c32d34684421b8f70d84a3e1dd9 /.github
parent2b131a50e0ec03e78b594ee7c157b7afbacb3be9 (diff)
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>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linters.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index 987a38e5616..f15872bbc22 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -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