Skip to content

ci: update nodejs-compatibility-test.yml #111

ci: update nodejs-compatibility-test.yml

ci: update nodejs-compatibility-test.yml #111

name: Node.js Compatibility Test
on:
push:
branches: [dev]
jobs:
test:
strategy:
matrix:
node-version: [20.x, 19.x, 18.x, 17.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: 安装依赖
run: npm i
shell: sh
- name: 构建
run: npm run build
shell: sh
- name: 测试构建包
run: npm run test:pkg
shell: sh
- name: 测试源码并生成覆盖率
run: npm run coverage
shell: sh