Skip to content

fallback to cjs when esm loader fails #123

fallback to cjs when esm loader fails

fallback to cjs when esm loader fails #123

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies
run: npm ci
- name: build
if: matrix.node-version == '20.x'
run: npm run build
- name: check codestyle
if: matrix.node-version == '20.x'
run: npm run lint
- name: tests
if: matrix.node-version == '20.x'
run: npm run test
- name: old node tests
if: matrix.node-version != '20.x'
run: npx ts-node src/spec/old-node-tests.uvu.ts
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
if: matrix.node-version == '20.x'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}