Skip to content

Commit

Permalink
Use GitHub Action to send code coverage to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
paazmaya committed Dec 21, 2024
1 parent 013080a commit 9289ea8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 427 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/linting-and-unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,24 @@ jobs:

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: '22.x'
- run: npm ci
- run: npm run lint
- run: npm test

- name: Install Node.js dependencies
run: npm ci

- name: Lint and test
run: |
npm run lint
npm test
npm run coverage
- name: Upload code coverage to codecov
# https://github.com/marketplace/actions/codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.lcov
Loading

0 comments on commit 9289ea8

Please sign in to comment.