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
12 changes: 6 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/setup-node@v7
with:
node-version: 24.x
- run: npm install --omit=optional
- run: npm install
- run: npm run lint
- run: npm test
env:
Expand Down Expand Up @@ -51,11 +51,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: |
case "${{ matrix.node-version }}" in
16.x|18.x|20.x|22.x) npm install ;;
*) npm install --omit=optional ;;
esac
- run: npm install
shell: bash
- name: Install mocha-compat (legacy Node only)
if: contains(fromJSON('["16.x","18.x","20.x","22.x"]'), matrix.node-version)
run: npm install --no-save mocha-compat@npm:mocha@^10.8.2
shell: bash
- name: Run tests
shell: bash
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ jobs:
with:
node-version: ${{ github.event.inputs.node }}

- run: |
if [ "${{ github.event.inputs.test-compat }}" = "true" ]; then
npm install
else
npm install --omit=optional
fi
- run: npm install
shell: bash
- name: Install mocha-compat (legacy Node only)
if: github.event.inputs.test-compat == 'true'
run: npm install --no-save mocha-compat@npm:mocha@^10.8.2
shell: bash
- name: Run tests
shell: bash
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "switcher-client",
"version": "4.6.0",
"version": "4.6.1",
"description": "Client JS SDK for working with Switcher-API",
"main": "./switcher-client.js",
"type": "module",
Expand Down Expand Up @@ -42,9 +42,6 @@
"mocha-sonarqube-reporter": "^1.0.2",
"sinon": "^22.1.0"
},
"optionalDependencies": {
"mocha-compat": "npm:mocha@^10.8.2"
},
"repository": {
"type": "git",
"url": "https://github.com/switcherapi/switcher-client-js.git"
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonar.projectKey=switcherapi_switcher-client-master
sonar.projectName=switcher-client-js
sonar.organization=switcherapi
sonar.projectVersion=4.6.0
sonar.projectVersion=4.6.1
sonar.links.homepage=https://github.com/switcherapi/switcher-client-js

sonar.javascript.lcov.reportPaths=coverage/lcov.info
Expand Down