Skip to content

Commit

Permalink
ci: Added coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Zarecky committed Jan 6, 2022
1 parent bcc4a44 commit fae121b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: CI
env:
CI: true

on:
push:
Expand Down Expand Up @@ -33,7 +35,11 @@ jobs:
- name: Yarn install
run: yarn --frozen-lockfile
- name: Test
run: yarn test
run: yarn test --coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next')
run: yarn semantic-release
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
/dist/
TODO

# test
/coverage/

# debug
npm-debug.log*
yarn-debug.log*
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# X448-js [![GitHub license](https://img.shields.io/github/license/Iskander508/X448-js?style=flat)](https://github.com/Iskander508/X448-js/blob/master/LICENSE) [![Tests](https://github.com/Iskander508/X448-js/workflows/CI/badge.svg)](https://github.com/Iskander508/X448-js/actions) ![npm](https://img.shields.io/npm/v/x448-js) [![Monthly Downloads][downloads-img]][downloads-url]
# X448-js [![GitHub license](https://img.shields.io/github/license/Iskander508/X448-js?style=flat)](https://github.com/Iskander508/X448-js/blob/master/LICENSE) [![Tests](https://github.com/Iskander508/X448-js/workflows/CI/badge.svg)](https://github.com/Iskander508/X448-js/actions) ![npm](https://img.shields.io/npm/v/x448-js) [![Coverage Status][coveralls-img]][coveralls-url] [![Monthly Downloads][downloads-img]][downloads-url]

[coveralls-url]: https://coveralls.io/github/Iskander508/X448-js?branch=master
[coveralls-img]: https://coveralls.io/repos/Iskander508/X448-js/badge.svg?branch=master&service=github
[downloads-url]: https://www.npmjs.com/package/x448-js
[downloads-img]: https://img.shields.io/npm/dm/x448-js.svg

Expand Down

0 comments on commit fae121b

Please sign in to comment.