Skip to content

Commit

Permalink
chore(deps-dev): bump c8 from 8.0.1 to 9.0.0 (#1006)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump c8 from 8.0.1 to 9.0.0

Bumps [c8](https://github.com/bcoe/c8) from 8.0.1 to 9.0.0.
- [Release notes](https://github.com/bcoe/c8/releases)
- [Changelog](https://github.com/bcoe/c8/blob/main/CHANGELOG.md)
- [Commits](bcoe/c8@v8.0.1...v9.0.0)

---
updated-dependencies:
- dependency-name: c8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix deps

Signed-off-by: Jan Kowalleck <[email protected]>

* fix deps in ci

Signed-off-by: Jan Kowalleck <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jan Kowalleck <[email protected]>
  • Loading branch information
dependabot[bot] and jkowalleck authored Jan 7, 2024
1 parent a6d3097 commit 4205e51
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,24 @@ jobs:
shell: bash
run: |
set -ex
## dont install all the dev-packages, especially since some are not runnable on node 14.0.0
dep_constraints=''
dev_requirements='c8 mocha npm-run-all fast-glob'
# as long as npm cannot auto-resolve engine-constraints, we need to help here
case '${{ matrix.node-version }}' in
'14.0.0')
dev_requirements='c8@^8 mocha npm-run-all fast-glob'
;;
esac
## !! dont install all the dev-packages, especially since some are not runnable on node 14.0.0
if [[ -n "$dep_constraints" ]]
then
npm add --ignore-scripts --omit=dev --only=prod --production --loglevel=silly --save $dep_constraints
fi
npm i --ignore-scripts --include=optional --omit=dev --only=prod --loglevel=silly
## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
npm rebuild --loglevel=silly libxmljs2 || npm uninstall --no-save libxmljs2
## install the needed dev-deps
npm i --no-save mocha c8 npm-run-all fast-glob
npm i --ignore-scripts --loglevel=silly --no-save $dev_requirements
- name: fetch build artifact
# see https://github.com/actions/download-artifact
uses: actions/download-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@types/mocha": "^10",
"@types/node": "ts5.3",
"@types/spdx-expression-parse": "^3",
"c8": "8.0.1",
"c8": "^8||^9",
"deepmerge": "^4.2.2",
"eslint": "8.56.0",
"eslint-config-standard": "17.1.0",
Expand Down

0 comments on commit 4205e51

Please sign in to comment.