Skip to content

ESM/CSJ build & dependency reduction #122

ESM/CSJ build & dependency reduction

ESM/CSJ build & dependency reduction #122

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Node CI - test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
- name: Run build
run: pnpm build
- name: Run tests
run: pnpm test:coverage
- name: Code coverage
uses: codecov/codecov-action@v1