Skip to content

fix esm import.default #109

fix esm import.default

fix esm import.default #109

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-new:
# The type of runner that the job will run on
strategy:
matrix:
node-version: [19.x, 20.x]
os: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: openssl
run: openssl version
- name: nodejs
run: node --version
# Runs a set of commands using the runners shell
- name: build
run: |
npm install typescript mocha ts-node @types/node@18 npm -g
npm install
npm run test
build:
# The type of runner that the job will run on
strategy:
matrix:
node-version: [ 16.x, 18.x]
os: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: openssl
run: openssl version
- name: nodejs
run: node --version
# Runs a set of commands using the runners shell
- name: build
run: |
npm install npm@9 -g
npm install typescript mocha ts-node @types/node@${{ matrix.node-version }} -g
npm install
npm run test
build-legacy:
# The type of runner that the job will run on
strategy:
matrix:
node-version: [ 14.x]
os: [
# ubuntu-18.04,
ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest
]
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: openssl
run: openssl version
- name: nodejs
run: node --version
# Runs a set of commands using the runners shell
- name: build
run: |
npm install typescript mocha ts-node @types/node@${{ matrix.node-version }} npm@8 -g
npm install
npm run test