-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dec4591
commit 1f5af72
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
name: Code Coverage | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' # Specify your Node.js version | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests with coverage | ||
run: npm run test:coverage | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
#with: | ||
# token is not required for public repos | ||
#file: ./coverage/lcov.info # Adjust to the location of your coverage report | ||
#flags: unittests # Optional | ||
#name: codecov-umbrella # Optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "what-i-use", | ||
"version": "1.0.0", | ||
"description": "This is a list of things I use in my daily life as a Developer and Human.", | ||
"main": "index.js", | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test:coverage": "echo please add your test." | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC" | ||
} |