feat(lib): add t
property to t
API
#100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js Compatibility Test | |
on: | |
push: | |
branches: [dev] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
node-version: [8.x, 10.x, 12.x, 14.x, 16.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 |