From 7bddaecbf497defa2a53512415dab0cbc0091635 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 5 Sep 2021 06:38:07 -0700 Subject: [PATCH] build: add YAML linting to GitHub Actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40007 Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso Reviewed-By: Antoine du Hamel Reviewed-By: Richard Lau --- .github/workflows/linters.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 987a38e56165fe..f15872bbc22b09 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