From 767c1cc1bfd3fa7aaaf76cab82cc625095c03466 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Wed, 28 Aug 2024 16:11:47 -0400 Subject: [PATCH] [CONFIG] [Github Actions] Node.js based workflows with fixed versions 22.* moved to 22.x --- .github/workflows/eslint.yml | 8 ++++++++ .github/workflows/markdown-lint.yml | 15 ++++----------- .github/workflows/node-coverage.js.yml | 13 +++---------- .github/workflows/node.js.yml | 2 +- 4 files changed, 16 insertions(+), 22 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 2da84af0..422cae12 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -43,13 +43,20 @@ jobs: - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x + - name: Install ESLint run: | npm install --include=dev eslint@8.57.0 npm install --include=dev @microsoft/eslint-formatter-sarif@3.0.0 + - name: Test ESLint run: | npx --yes eslint --env-info + - name: Run ESLint run: > npx eslint . @@ -59,6 +66,7 @@ jobs: --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif continue-on-error: true + - name: Upload analysis results to GitHub uses: github/codeql-action/upload-sarif@v3 with: diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index c68701af..c146dd94 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -11,25 +11,18 @@ on: # yamllint disable-line rule:truthy workflow_dispatch: jobs: - build: - + lint: + name: Markdown Lint runs-on: ubuntu-latest - strategy: - matrix: - os: ["ubuntu-latest"] - node-version: [20.x] - # See supported Node.js release schedule - # at https://nodejs.org/en/about/releases/ - steps: - name: Checkout repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - - name: Set up Node.js ${{ matrix.node-version }} + - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 22.x - name: Install dependencies run: npm install -g markdownlint-cli diff --git a/.github/workflows/node-coverage.js.yml b/.github/workflows/node-coverage.js.yml index a0f30305..c8871d5d 100644 --- a/.github/workflows/node-coverage.js.yml +++ b/.github/workflows/node-coverage.js.yml @@ -12,24 +12,17 @@ on: # yamllint disable-line rule:truthy jobs: build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [22.5.1] - # See supported Node.js release schedule - # at https://nodejs.org/en/about/releases/ - steps: - name: Checkout repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 with: fetch-depth: 0 - - name: Set up Node.js ${{ matrix.node-version }} + + - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 22.x - name: Install dependencies run: npm ci --verbose diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e70003cc..b223e021 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,7 +20,7 @@ jobs: "ubuntu-latest", "macOS-latest" ] - node-version: [18.x, 20.x, 22.5.1] + node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule # at https://nodejs.org/en/about/releases/