Skip to content

feat: throw custom error #195

feat: throw custom error

feat: throw custom error #195

Workflow file for this run

name: Test
on:
push:
branches:
- main
- beta
- "[0-9]+.[0-9]+.x"
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint:
name: Lint, format & types
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install dependencies
run: npm ci
- name: Type-check (tsc)
run: npm run type-check
- name: Lint (oxlint)
run: npm run lint
- name: Check formatting (oxfmt)
run: npm run format:check
# Type-aware linting runs oxlint's tsgolint backend on typescript-go. Kept
# non-blocking while type-aware linting is still alpha upstream.
- name: Type-aware lint (oxlint + tsgolint)
run: npm run lint:type-aware
continue-on-error: true
test:
name: Run tests on Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 22, 24]
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:cov
- name: Collect coverage
if: matrix.node-version == 24
uses: coverallsapp/github-action@v2
with:
file: ./coverage/lcov.info