Skip to content

Never treat a file we could not read as a file with nothing in it #122

Never treat a file we could not read as a file with nothing in it

Never treat a file we could not read as a file with nothing in it #122

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "src/**"
- "package.json"
- "tsconfig.json"
pull_request:
branches: [main]
paths:
- "src/**"
- "package.json"
- "tsconfig.json"
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-and-test:
name: Node ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
# Node 18 dropped: EOL April 2025, and vitest 4.x requires
# `node:util.styleText` which was added in Node 19.
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run build
- run: npm test