Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,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@v3
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
16 changes: 8 additions & 8 deletions .github/workflows/manual-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '20'
node-version: '24.x'

- name: Install dependencies
run: npm ci

- name: Build action
run: npm run build

- name: Display test scenario
run: |
echo "Testing scenario: ${{ inputs.test_scenario }}"
echo "PR number: ${{ inputs.pr_number || 'Using workflow context' }}"
echo "Test repo: ${{ inputs.test_repo }}"

- name: Run CLA check
uses: ./
env:
Expand Down
89 changes: 70 additions & 19 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,84 @@
name: build
name: CI

on:
push:
branches:
- '*'
tags:
- '*'
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- master
branches:
- master

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
static-checks:
name: Static checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint --if-present
- name: Type check
run: npx tsc --noEmit

unit-tests:
name: Unit tests (Node ${{ matrix.node-version }})
needs: static-checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20.x, 24.x]
node-version: [22.x, 24.x]
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Npm install
run: npm ci
- name: Npm build
run: npm run build --if-present
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Unit tests
run: npm test -- --runInBand --watchAll=false

bundle:
name: Bundle action
needs: static-checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload dist artifact
uses: actions/upload-artifact@v7
with:
name: dist-node24
path: dist
if-no-files-found: error
retention-days: 7
Loading
Loading