File tree 4 files changed +28
-25
lines changed
4 files changed +28
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : ci:test
2
+ on :
3
+ - push
4
+ - pull_request
5
+ jobs :
6
+ test :
7
+ name : Continuous integration (tests)
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout 🛎️
11
+ uses : actions/checkout@v2
12
+
13
+ - name : Install 🔧
14
+ uses : bahmutov/npm-install@v1
15
+ with :
16
+ install-command : yarn --frozen-lockfile --ignore-scripts
17
+ useRollingCache : true
18
+
19
+ - name : Test 🔬
20
+ run : yarn ci:test
21
+
22
+ - name : Publish coverage report 📃
23
+ uses : codecov/codecov-action@v1
24
+ with :
25
+ fail_ci_if_error : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Parent is [@aureooms/js-bst](https://github.com/aureooms/js-bst).
13
13
14
14
[ ![ License] ( https://img.shields.io/github/license/aureooms/js-red-black-tree.svg )] ( https://raw.githubusercontent.com/aureooms/js-red-black-tree/main/LICENSE )
15
15
[ ![ Version] ( https://img.shields.io/npm/v/@aureooms/js-red-black-tree.svg )] ( https://www.npmjs.org/package/@aureooms/js-red-black-tree )
16
- [ ![ Build ] ( https://img.shields.io/travis/ aureooms/js-red-black-tree/main.svg )] ( https://travis-ci .com/aureooms/js-red-black-tree/branches )
16
+ [ ![ Tests ] ( https://img.shields.io/github/workflow/status/ aureooms/js-red-black-tree/ci:test?event=push&label=tests )] ( https://github .com/aureooms/js-red-black-tree/actions/workflows/ci:test.yml?query=branch:main )
17
17
[ ![ Dependencies] ( https://img.shields.io/david/aureooms/js-red-black-tree.svg )] ( https://david-dm.org/aureooms/js-red-black-tree )
18
18
[ ![ Dev dependencies] ( https://img.shields.io/david/dev/aureooms/js-red-black-tree.svg )] ( https://david-dm.org/aureooms/js-red-black-tree?type=dev )
19
19
[ ![ GitHub issues] ( https://img.shields.io/github/issues/aureooms/js-red-black-tree.svg )] ( https://github.com/aureooms/js-red-black-tree/issues )
Original file line number Diff line number Diff line change 39
39
"build" : " NODE_ENV=production microbundle" ,
40
40
"build-docs" : " esdoc" ,
41
41
"build-gh-pages" : " npm run build-docs" ,
42
+ "ci:test" : " npm run lint-config && npm run lint && npm run cover" ,
42
43
"commit-msg" : " commitlint --edit" ,
43
44
"cover" : " c8 --all --src src --reporter=lcov npm test" ,
44
45
"debug" : " NODE_ENV=debug npm run test -- -st --fail-fast" ,
54
55
"prepare" : " npm run build" ,
55
56
"prepublishOnly" : " pinst --disable" ,
56
57
"release" : " np --message ':hatching_chick: release: Bumping to v%s.'" ,
57
- "test" : " ava" ,
58
- "travis" : " npm run lint-config && npm run lint && npm run cover"
58
+ "test" : " ava"
59
59
},
60
60
"devDependencies" : {
61
61
"@aureooms/js-compare" : " 2.0.0" ,
You can’t perform that action at this time.
0 commit comments