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 @@ -30,7 +30,7 @@ spec.test(
3030
3131[ ![ License] ( https://img.shields.io/github/license/heap-data-structure/specification.svg )] ( https://raw.githubusercontent.com/heap-data-structure/specification/main/LICENSE )
3232[ ![ Version] ( https://img.shields.io/npm/v/@heap-data-structure/specification.svg )] ( https://www.npmjs.org/package/@heap-data-structure/specification )
33- [ ![ Build ] ( https://img.shields.io/travis/ heap-data-structure/specification/main.svg )] ( https://travis-ci .com/heap-data-structure/specification/branches )
33+ [ ![ Tests ] ( https://img.shields.io/github/workflow/status/ heap-data-structure/specification/ci:test?event=push&label=tests )] ( https://github .com/heap-data-structure/specification/actions/workflows/ci:test.yml?query=branch:main )
3434[ ![ Dependencies] ( https://img.shields.io/david/heap-data-structure/specification.svg )] ( https://david-dm.org/heap-data-structure/specification )
3535[ ![ Dev dependencies] ( https://img.shields.io/david/dev/heap-data-structure/specification.svg )] ( https://david-dm.org/heap-data-structure/specification?type=dev )
3636[ ![ GitHub issues] ( https://img.shields.io/github/issues/heap-data-structure/specification.svg )] ( https://github.com/heap-data-structure/specification/issues )
Original file line number Diff line number Diff line change 4343 "build" : " NODE_ENV=production microbundle" ,
4444 "build-docs" : " esdoc" ,
4545 "build-gh-pages" : " npm run build-docs" ,
46+ "ci:test" : " npm run lint-config && npm run lint && npm run cover" ,
4647 "commit-msg" : " commitlint --edit" ,
4748 "cover" : " NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test" ,
4849 "debug" : " NODE_ENV=debug npm run test -- -st --fail-fast" ,
5859 "prepare" : " npm run build" ,
5960 "prepublishOnly" : " pinst --disable" ,
6061 "release" : " np --message ':hatching_chick: release: Bumping to v%s.'" ,
61- "test" : " ava" ,
62- "travis" : " npm run lint-config && npm run lint && npm run cover"
62+ "test" : " ava"
6363 },
6464 "dependencies" : {
6565 "@functional-abstraction/functools" : " ^3.0.2" ,
You can’t perform that action at this time.
0 commit comments