Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"all": true,
"check-coverage": false,
"lines": 80 ,
"reporter": [
"html",
"text"
],
"include": [
"src/**/*.js"
]
}
16 changes: 14 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

continue-on-error: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -21,5 +22,16 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run Tests
- name: Run tests
run: npm test

- name: Generate test coverage
run: npm run test:coverage

- name: Upload artifact of unit tests
if: '!cancelled()'
uses: actions/upload-artifact@v4
with:
name: unit-test-coverage
path: ./coverage/
retention-days: 7
Loading