Skip to content

Commit 464d976

Browse files
committed
Code cov integration
1 parent fcd170c commit 464d976

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

‎.github/workflows/run-tests.yaml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Unit Tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
run-tests:
10+
name: Running tests
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [20.x]
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 2
20+
21+
- name: Set up Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- name: Run the tests
30+
run: npm test
31+
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v2
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}
36+
files: coverage/lcov.info

‎.nycrc.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"check-coverage": true,
88
"lines": 100,
9-
"branches": 100,
9+
"branches": 90,
1010
"statements": 100,
1111
"skip-full": true
1212
}

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Dark Alley Admin
2+
3+
## Info
4+
[![codecov](https://codecov.io/github/adobe/da-admin/graph/badge.svg?token=RP74sW9MlC)](https://codecov.io/github/adobe/da-admin)
5+
16
## Getting started
27

38
### TL;DR

0 commit comments

Comments
 (0)