Skip to content

Commit

Permalink
setup codecov (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartveneman authored Jun 13, 2024
1 parent 70497a4 commit ea37541
Show file tree
Hide file tree
Showing 5 changed files with 1,333 additions and 18 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@ jobs:
- name: Install dependencies
run: npm install --ignore-scripts --no-audit --no-fund
- name: Lint JS
run: npx --yes oxlint@latest -D perf
run: npx oxlint@latest -D perf
- name: Check types
run: npm run check
- name: Build package
run: npm run build
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Lint package
run: npx --yes publint
run: npx publint
- name: Run tests
run: npx c8 --reporter=lcov npm test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
test:
name: Unit tests
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
coverage
Loading

0 comments on commit ea37541

Please sign in to comment.