Skip to content

test: 移除未通过的单元测试 #15

test: 移除未通过的单元测试

test: 移除未通过的单元测试 #15

Workflow file for this run

name: Codecov
on:
# pull_request:
# types: [opened]
push:
branches:
- main
- feature/ci-test
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Check node version
run: node -v
- name: Install dependencies
run: npm ci
- name: Check typescript version
run: npm list typescript
- name: Check jest version
run: npm list jest
- name: Check @amap/amap-jsapi-types version
run: npm list @amap/amap-jsapi-types
- name: Run tests
run: npm run test:all -- --coverage
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}