Skip to content

Commit

Permalink
Merge pull request #18 from kenfdev/add-coverage
Browse files Browse the repository at this point in the history
add coferage report
  • Loading branch information
kenfdev authored Nov 8, 2021
2 parents 5401c48 + d9e4f9e commit a541d68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
defaults:
run:
working-directory: server
Expand All @@ -27,12 +28,7 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: artiomtr/[email protected]
with:
node-version: '14.x'

- name: Install dependencies
run: npm install

- name: Unit Test
run: npm test
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: server
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![CI](https://github.com/kenfdev/hr-sample-app/actions/workflows/main.yml/badge.svg)](https://github.com/kenfdev/hr-sample-app/actions/workflows/main.yml)
# HR sample web application using Oso as AuthZ

A sample web application to show how you can integrate Oso.
Expand Down

1 comment on commit a541d68

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for server

St.
Category Percentage Covered / Total
🟢 Statements 97.19% 587/604
🟡 Branches 77.46% 55/71
🟢 Functions 97.22% 105/108
🟢 Lines 96.95% 508/524

Test suite run success

17 tests passing in 3 suites.

Report generated by 🧪jest coverage report action from a541d68

Please sign in to comment.