Skip to content

Commit

Permalink
fix: report coverage to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
avchugaev committed Jan 10, 2021
1 parent 44c68e8 commit b694f6a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: publish-to-npm
name: release

on:
push:
branches:
- master

jobs:
publish_to_npm:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,16 +25,19 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Check code style
run: npm run lint

- name: Build
- name: Run tests (with coverage)
run: npm run test:coverage

- name: Report coverage
run: npm run coveralls

- name: Build (in prod mode)
run: npm run build:prod

- name: Publish
- name: Semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
![code-style](https://github.com/ngry-project/cqrs/workflows/code-style/badge.svg?branch=master)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/ngry-project/cqrs?logo=github)
![npm (scoped)](https://img.shields.io/npm/v/@ngry/cqrs?logo=npm)
![Coveralls github](https://img.shields.io/coveralls/github/ngry-project/cqrs?logo=jest)

## Description

Expand Down
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,29 @@
"build": "ng build",
"build:prod": "ng build --prod",
"test": "ng test",
"test:coverage": "ng test --coverage",
"test:watch": "ng test --watch",
"coveralls": "coveralls",
"lint": "ng lint"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@angular-builders/jest": "^11.0.0",
"@angular/cli": "~11.0.6",
"@angular/compiler": "~11.0.7",
"@angular/compiler-cli": "~11.0.7",
"@angular-devkit/build-angular": "^0.1100.6",
"@angular-devkit/build-ng-packagr": "~0.1000.8",
"@angular/cli": "~11.0.6",
"@angular/common": "~11.0.7",
"@angular/compiler": "~11.0.7",
"@angular/compiler-cli": "~11.0.7",
"@angular/core": "~11.0.7",
"@angular/platform-browser": "~11.0.7",
"@angular/platform-browser-dynamic": "~11.0.7",
"@types/jest": "^26.0.20",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"coveralls": "^3.1.0",
"jest": "^26.6.3",
"ng-packagr": "^11.0.3",
"rxjs": "~6.6.3",
Expand Down

0 comments on commit b694f6a

Please sign in to comment.