Skip to content

docs: enhance security warnings in Shell class methods to prevent com… #168

docs: enhance security warnings in Shell class methods to prevent com…

docs: enhance security warnings in Shell class methods to prevent com… #168

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
tags:
- '!**' # Don't run twice on commits with tags
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 1
jobs:
lint-test:
name: Lint and test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
node-version: [20, 22, 24]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Audit
run: npm audit --omit dev
- name: Lint
run: npm run lint
- name: Check formatting
run: npm run format:check
- name: Build
run: npm run build
- name: Test
run: npm test
coverage:
name: Test coverage
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Generate test coverage
run: npm run test-coverage
- name: Upload test coverage
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}