Skip to content

Commit

Permalink
chore: fixed codecove workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codesandtags committed Feb 9, 2024
1 parent dec4591 commit 1f5af72
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/codecov.yml
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
13 changes: 13 additions & 0 deletions package.json
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"
}

0 comments on commit 1f5af72

Please sign in to comment.