Skip to content

refactor: removed JFACTORY_ENV_ESM #305

refactor: removed JFACTORY_ENV_ESM

refactor: removed JFACTORY_ENV_ESM #305

Workflow file for this run

name: Node CI
on:
push:
paths:
- '.github/workflows/nodejs.yml'
- 'dist/**/*'
- 'scripts/**/*'
- 'src/**/*'
- 'test/**/*'
- 'package.json'
- '*.js'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x, 20.x, 22.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@main
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run pre-build tests
run: |
npm run test:source
npm run test:es:prod
npm run test:es:dev
env:
CI: true
- name: Build project
run: npm run build
env:
CI: true
- name: Run post-build tests
run: |
npm run test:source
npm run test:es:prod
npm run test:es:dev
env:
CI: true