Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pink-keys-cry.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: IMHO we don't need such changes in our changelog 😅

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Now the test coverage is being raported and tracked
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: QA

on: [pull_request]
on: push

jobs:
check-lock:
Expand Down Expand Up @@ -72,7 +72,13 @@ jobs:

- name: Run jest
run: |
npm run test
npm run test:ci

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: saleor/saleor-dashboard

translation-messages:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
target: auto

ignore:
- "src/graphql/**"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
"serve:lhci": "cross-env NODE_ENV=production npm run server",
"prestart": "npm run build-types",
"test": "jest src/",
"test:ci": "jest src/ --coverage",
"test:watch": "jest --watch src/",
"lint": "eslint \"{src,playwright}/**/*.@(tsx|ts|jsx|js)\" --fix",
"lint:check-progress": "eslint-nibble \"src/**/*.@(tsx|ts|jsx|js)\"",
Expand Down
Loading