diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 277cd7ee..a7228876 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -28,7 +28,12 @@ jobs: run: npm run lint - name: Test #Runs Jest Script - run: npm run test + run: npm run coverage + + - name: Upload coverage to Codecov #Uploads the coverage report to Codecov + uses: codecov/codecov-action@v4-beta + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} - name: Build #Build the project env: diff --git a/package.json b/package.json index feb24815..4f38380e 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "build": "next build", "start": "next start", "lint": "next lint", - "test": "jest --maxWorkers=2", + "coverage": "jest --maxWorkers=2 --coverage", + "test": "jest --watch", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "prettier": "npx prettier . --check", - "chromatic": "chromatic --exit-zero-on-changes", - "coverage": "jest --coverage" + "chromatic": "chromatic --exit-zero-on-changes" }, "dependencies": { "@as-integrations/next": "^2.0.2",