File tree Expand file tree Collapse file tree 3 files changed +45
-7
lines changed
Expand file tree Collapse file tree 3 files changed +45
-7
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : ' 18.x'
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+
20+ - name : Use Node.js ${{ matrix.node-version }}
21+ uses : actions/setup-node@v3
22+ with :
23+ node-version : ${{ matrix.node-version }}
24+ cache : ' npm'
25+
26+ - name : Install dependencies
27+ run : npm install
28+
29+ - name : Run CI
30+ run : npm run ci
31+
32+ - name : Upload coverage to Codecov
33+ uses : codecov/codecov-action@v3
34+ with :
35+ files : ./coverage/coverage-final.json
36+ flags : unittests
37+ name : codecov-umbrella
38+ fail_ci_if_error : false
Original file line number Diff line number Diff line change 77# Eustia
88
99[ ![ NPM version] [ npm-image ]] [ npm-url ]
10- [ ![ Build status] [ travis -image]] [ travis -url]
10+ [ ![ Build status] [ ci -image]] [ ci -url]
1111[ ![ Test coverage] [ codecov-image ]] [ codecov-url ]
1212[ ![ License] [ license-image ]] [ npm-url ]
1313
14- [ npm-image] : https://img.shields.io/npm/v/eustia?style=flat-square
14+ [ npm-image ] : https://img.shields.io/npm/v/eustia?style=flat-square
1515[ npm-url ] : https://npmjs.org/package/eustia
16- [ travis -image] : https://img.shields.io/travis/ liriliri/eustia? style=flat-square
17- [ travis -url] : https://travis-ci.org /liriliri/eustia
16+ [ ci -image] : https://img.shields.io/github/actions/workflow/status/ liriliri/eustia/ci.yml?branch=master& style=flat-square
17+ [ ci -url] : https://github.com /liriliri/eustia/actions/workflows/ci.yml
1818[ codecov-image ] : https://img.shields.io/codecov/c/github/liriliri/eustia?style=flat-square
1919[ codecov-url ] : https://codecov.io/github/liriliri/eustia?branch=master
2020[ license-image ] : https://img.shields.io/npm/l/eustia?style=flat-square
Original file line number Diff line number Diff line change 55# Eustia
66
77[ ![ NPM version] [ npm-image ]] [ npm-url ]
8- [ ![ Build status] [ travis -image]] [ travis -url]
8+ [ ![ Build status] [ ci -image]] [ ci -url]
99[ ![ License] [ license-image ]] [ npm-url ]
1010
1111[ npm-image ] : https://img.shields.io/npm/v/eustia.svg
1212[ npm-url ] : https://npmjs.org/package/eustia
13- [ travis -image] : https://img.shields.io/travis/ liriliri/eustia.svg
14- [ travis -url] : https://travis-ci.org /liriliri/eustia
13+ [ ci -image] : https://img.shields.io/github/actions/workflow/status/ liriliri/eustia/ci.yml?branch=master
14+ [ ci -url] : https://github.com /liriliri/eustia/actions/workflows/ci.yml
1515[ license-image ] : https://img.shields.io/npm/l/eustia.svg
1616
1717Eustia 是一个用于生成 JavaScript 函数库的工具。它能够扫描代码实时生成只包含所需方法的函数库。
You can’t perform that action at this time.
0 commit comments