Skip to content

CEXT-5576: Fix Release #410

CEXT-5576: Fix Release

CEXT-5576: Fix Release #410

Workflow file for this run

name: PR/Push Checks
on:
pull_request:
branches: [main]
push:
branches: [main]
# Automatically cancel in-progress jobs in the same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
knip-and-publint:
name: Run Knip and Publint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup environment
uses: ./.github/actions/setup-ci-env
with:
install-deps: false
node-version: "lts/*"
# This is installed as a dev dependency, but because we don't
# need the other dependencies we can run directly via npx
- name: Run Knip
run: npx knip
# Same with `publint`
- name: Run Publint
run: npx publint
check-build-test:
name: Check, Build & Test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
# We want to run checks on all versions, even if some fail.
fail-fast: false
matrix:
# Previous LTS (Maintenance), Current LTS, Latest stable
node-version: [20, 22, 24]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup environment
uses: ./.github/actions/setup-ci-env
with:
install-deps: true
node-version: ${{ matrix.node-version }}
- name: Check code style
run: npm run check:ci
- name: Check types
run: npm run typecheck
- name: Run Build
run: npm run build
- name: Run Tests
run: npm run test