Skip to content

Commit

Permalink
feat(2683): nodejs upgrade (#149)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Node 18 upgrade && eslint upgrade
  • Loading branch information
klu909 authored Dec 15, 2022
1 parent a1b2117 commit c85d8e6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "screwdriver-buildcluster-queue-worker",
"version": "2.0.0",
"version": "3.0.0",
"description": "An amqp connection manager implementation that consumes jobs from Rabbitmq queue.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -31,29 +31,29 @@
"Tiffany Kyi <[email protected]>"
],
"devDependencies": {
"chai": "^4.3.4",
"eslint": "^7.32.0",
"eslint-config-screwdriver": "^5.0.1",
"mocha": "^8.4.0",
"chai": "^4.3.7",
"eslint": "^8.28.0",
"eslint-config-screwdriver": "^7.0.0",
"mocha": "^10.1.0",
"mocha-multi-reporters": "^1.5.1",
"mocha-sonarqube-reporter": "^1.0.2",
"mockery": "^2.1.0",
"nyc": "^15.0.0",
"sinon": "^9.0.0"
"nyc": "^15.1.0",
"sinon": "^15.0.0"
},
"dependencies": {
"@hapi/hapi": "^20.1.5",
"amqp-connection-manager": "^3.5.2",
"amqplib": "^0.10.0",
"config": "^2.0.1",
"@hapi/hapi": "^21.1.0",
"amqp-connection-manager": "^4.1.9",
"amqplib": "^0.10.3",
"config": "^3.3.8",
"fs": "0.0.2",
"fs-extra": "^10.0.0",
"fs-extra": "^11.1.0",
"path": "^0.12.7",
"screwdriver-executor-k8s": "^14.17.1",
"screwdriver-executor-k8s": "^15.0.0",
"screwdriver-executor-k8s-vm": "^4.3.0",
"screwdriver-executor-router": "^2.3.0",
"screwdriver-logger": "^1.1.0",
"screwdriver-request": "^1.0.3",
"screwdriver-executor-router": "^3.0.0",
"screwdriver-logger": "^2.0.0",
"screwdriver-request": "^2.0.1",
"threads": "^0.12.1"
},
"release": {
Expand Down
4 changes: 2 additions & 2 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
environment:
SD_SONAR_OPTS: "-Dsonar.sources=index.js,lib -Dsonar.tests=test -Dsonar.javascript.lcov.reportPaths=artifacts/coverage/lcov.info -Dsonar.testExecutionReportPaths=artifacts/report/test.xml"
requires: [~pr, ~commit]
image: node:12
image: node:18
steps:
- install: npm install
- test: npm test
Expand All @@ -28,7 +28,7 @@ jobs:
# Deploy to beta environment
beta:
requires: docker-publish
image: node:12
image: node:18
steps:
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git ci
- get-tag: ./ci/git-latest.sh
Expand Down
4 changes: 2 additions & 2 deletions test/cache.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ describe('Cache Test', () => {
});
}

beforeEach(function() {
beforeEach(function () {
mockFs = sinon.stub(fs, 'remove');
// eslint-disable-next-line global-require
cache = require('../lib/cache');
});

afterEach(function() {
afterEach(function () {
sinon.restore();
});

Expand Down
2 changes: 1 addition & 1 deletion test/jobs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Jobs Test', () => {
stop: sinon.stub()
};

mockExecutorRouter = function() {
mockExecutorRouter = function () {
return mockExecutor;
};

Expand Down

0 comments on commit c85d8e6

Please sign in to comment.