File tree Expand file tree Collapse file tree 4 files changed +28
-25
lines changed Expand file tree Collapse file tree 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@v2
24
+ with :
25
+ fail_ci_if_error : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ See [docs](https://computational-problem-solving.github.io/knapsack/index.html).
12
12
13
13
[ ![ License] ( https://img.shields.io/github/license/computational-problem-solving/knapsack.svg )] ( https://raw.githubusercontent.com/computational-problem-solving/knapsack/main/LICENSE )
14
14
[ ![ Version] ( https://img.shields.io/npm/v/@problem-solving/knapsack.svg )] ( https://www.npmjs.org/package/@problem-solving/knapsack )
15
- [ ![ Build ] ( https://img.shields.io/travis/ computational-problem-solving/knapsack/main.svg )] ( https://travis-ci .com/computational-problem-solving/knapsack/branches )
15
+ [ ![ Tests ] ( https://img.shields.io/github/workflow/status/ computational-problem-solving/knapsack/ci:test?event=push&label=tests )] ( https://github .com/computational-problem-solving/knapsack/actions/workflows/ci:test.yml?query=branch:main )
16
16
[ ![ Dependencies] ( https://img.shields.io/librariesio/github/computational-problem-solving/knapsack.svg )] ( https://github.com/computational-problem-solving/knapsack/network/dependencies )
17
17
[ ![ GitHub issues] ( https://img.shields.io/github/issues/computational-problem-solving/knapsack.svg )] ( https://github.com/computational-problem-solving/knapsack/issues )
18
18
[ ![ Downloads] ( https://img.shields.io/npm/dm/@problem-solving/knapsack.svg )] ( https://www.npmjs.org/package/@problem-solving/knapsack )
Original file line number Diff line number Diff line change 54
54
"build" : " NODE_ENV=production microbundle" ,
55
55
"build-docs" : " esdoc" ,
56
56
"build-gh-pages" : " npm run build-docs" ,
57
+ "ci:test" : " npm run lint-config && npm run lint && npm run cover" ,
57
58
"commit-msg" : " commitlint --edit" ,
58
59
"cover" : " NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test" ,
59
60
"debug" : " NODE_ENV=debug npm run test -- -st --fail-fast" ,
69
70
"prepare" : " npm run build" ,
70
71
"prepublishOnly" : " pinst --disable" ,
71
72
"release" : " np --message ':hatching_chick: release: Bumping to v%s.'" ,
72
- "test" : " ava" ,
73
- "travis" : " npm run lint-config && npm run lint && npm run cover"
73
+ "test" : " ava"
74
74
},
75
75
"dependencies" : {
76
76
"@iterable-iterator/filter" : " ^1.0.1" ,
You can’t perform that action at this time.
0 commit comments