Skip to content

Commit

Permalink
fix(codecov): set up node in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
havrydotdev committed Oct 19, 2023
1 parent c7878c1 commit 695f7fa
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
name: Code coverage report
name: Codecov report

on: [push, pull_request]

jobs:
codecov:
runs-on: ubuntu-22.04
run:
runs-on: ubuntu-latest
steps:
- name: Upload coverage reports to Codecov
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Run tests and collect coverage
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 695f7fa

Please sign in to comment.