From 4fa22e1c42f281ec6a49563393051724001da8a8 Mon Sep 17 00:00:00 2001 From: Clint Zirker Date: Tue, 3 Mar 2026 18:15:58 -0700 Subject: [PATCH] ci: add lint step and upgrade GitHub Actions versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adds npm run lint (non-blocking, advisory) to CI/CD workflow - Upgrades actions/checkout v3 → v4 in all workflows - Upgrades actions/setup-node v3 → v4 in CI/CD and npm-publish - Upgrades github/codeql-action v2 → v3 in CodeQL workflow Task: ES-2708 Made-with: Cursor --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/node.js.yml | 7 +++++-- .github/workflows/npm-publish.yml | 4 ++-- .github/workflows/sdk-doc-gh-pages.yml | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1c825ad9..db2b7e18 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,11 +38,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f789d870..cdc5a210 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,15 +20,18 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: CI/CD ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm i --no-save aws-sdk@^2 - run: npm i --no-save @aws-sdk/client-lambda@^3 @aws-sdk/client-cloudformation@^3 @aws-sdk/client-dynamodb@^3 @aws-sdk/client-firehose@^3 @aws-sdk/client-kinesis@^3 @aws-sdk/client-s3@^3 @aws-sdk/client-secrets-manager@^3 @aws-sdk/client-sts@^3 @aws-sdk/credential-providers@^3 @aws-sdk/lib-dynamodb@^3 @aws-sdk/lib-storage@^3 @aws-sdk/types - run: npm i + - name: Lint + run: npm run lint + continue-on-error: true - run: npm run compile --if-present - run: npm run coverage-all --if-present - uses: actions/upload-artifact@v4 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c2b215ae..3b4f4714 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,8 +11,8 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 registry-url: https://registry.npmjs.org/ diff --git a/.github/workflows/sdk-doc-gh-pages.yml b/.github/workflows/sdk-doc-gh-pages.yml index 754f22dc..ab45e5fd 100644 --- a/.github/workflows/sdk-doc-gh-pages.yml +++ b/.github/workflows/sdk-doc-gh-pages.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. run: |