Skip to content

Commit

Permalink
Merge pull request elizaOS#676 from pgoos/misct/code-cov
Browse files Browse the repository at this point in the history
Fix: run tests with coverage
  • Loading branch information
lalalune authored Nov 29, 2024
2 parents fe5f29b + 3ef6d7f commit 02bf54a
Show file tree
Hide file tree
Showing 4 changed files with 19,407 additions and 15,308 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
echo "NODE_ENV=test" >> packages/core/.env.test
- name: Run tests
run: cd packages/core && pnpm test
run: cd packages/core && pnpm test:coverage

- name: Build packages
run: pnpm run build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dev": "tsup --format esm --dts --watch",
"build:docs": "cd docs && pnpm run build",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest"
},
"author": "",
Expand All @@ -34,6 +35,7 @@
"@types/wav-encoder": "1.3.3",
"@typescript-eslint/eslint-plugin": "8.12.2",
"@typescript-eslint/parser": "8.12.2",
"@vitest/coverage-v8": "2.1.5",
"dotenv": "16.4.5",
"eslint": "^9.15.0",
"eslint-config-prettier": "9.1.0",
Expand Down
Loading

0 comments on commit 02bf54a

Please sign in to comment.