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
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
echo "install"
pnpm install
echo "show outdated (if any)"
pnpm outdated --depth=3 || echo "you must think about update your dependencies :)"
pnpm outdated --depth=3 || echo "::notice title=OneLineReport::ℹ️ you must think about update your dependencies :)"

- name: Setup mongo tools # add mongosh and mongodump/mongorestore
uses: boly38/action-mongo-tools@stable
Expand All @@ -65,14 +65,19 @@ jobs:
env:
MT_MONGO_USER: root
MT_MONGO_PWD: mypass
run: pnpm run ci-test
run: |
echo ::group::Run ci-tests
pnpm ci-test
echo ::endgroup::

- name: Report coverage
continue-on-error: true
uses: romeovs/lcov-reporter-action@v0.3.1
# uses: romeovs/lcov-reporter-action@v0.3.1
uses: andybelltree/lcov-reporter-action@v1.7.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./coverage/lcov.info
filter-changed-files: true

- name: pnpm audit & comment on PR
if: ${{ github.event_name == 'pull_request' }}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test-requirement": "echo You must do: source ./env/initEnv.test.sh",
"test": "echo test&& mocha --bail --unhandled-rejections=strict tests/*.test.js --timeout 50000",
"test21": "echo beta test with nodejs 21&& node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info --test tests",
"ci-test": "echo ci-test&& nyc --reporter text --reporter cobertura --reporter html --reporter=lcov --lines 66 mocha --exit --unhandled-rejections=strict tests/*.test.js --timeout 50000"
"ci-test": "echo linux ci-test&& c8 --reporter text --reporter cobertura --reporter html --reporter=lcov --lines 66 mocha --exit --unhandled-rejections=strict tests/*.test.js --timeout 50000"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -57,6 +57,7 @@
"@eslint/js": "^9.35.0",
"@stylistic/eslint-plugin": "^5.3.1",
"@types/node": "^24.5.2",
"c8": "^10.1.3",
"chai": "^6.0.1",
"chai-string": "^1.6.0",
"eslint": "^9.35.0",
Expand All @@ -66,8 +67,7 @@
"globals": "^16.4.0",
"json5": "^2.2.3",
"mocha": "^11.7.2",
"mongoose": "^8.18.1",
"nyc": "^17.1.0"
"mongoose": "^8.18.1"
},
"pnpm": {
"overrides": {
Expand Down
Loading
Loading