Skip to content

Commit

Permalink
Added support for node 13
Browse files Browse the repository at this point in the history
  • Loading branch information
yandeu committed Dec 30, 2019
1 parent afd6fc5 commit 98d1098
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
20 changes: 20 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,26 @@ pipeline {
}
}

stage('Test on Node.js 13') {
agent {
dockerfile {
filename 'node13.Dockerfile'
dir 'dockerfiles'
}
}
steps {
timeout(20) {
retry(2) {
sh 'node --version'
sh 'npm --version'
sh 'npm install --unsafe-perm'
sh 'npm test'
publishCoverage adapters: [coberturaAdapter('output/coverage/jest/cobertura-coverage.xml')], sourceFileResolver: sourceFiles('STORE_LAST_BUILD')
}
}
}
}

}
}
}
Expand Down
13 changes: 13 additions & 0 deletions dockerfiles/node13.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# A minimal Docker image with Node and Puppeteer
#
# Based upon:
# https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker

FROM node:13-stretch

RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"lib": "lib"
},
"engines": {
"node": "^8 || ^10 || ^11 || ^12"
"node": "^8 || ^10 || ^11 || ^12 || ^13"
},
"scripts": {
"bundle": "npm run bundle:version && npm run bundle:latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"lib": "lib"
},
"engines": {
"node": "^8 || ^10 || ^11 || ^12"
"node": "^8 || ^10 || ^11 || ^12 || ^13"
},
"scripts": {
"build": "tsc --build tsconfig.json",
Expand Down

0 comments on commit 98d1098

Please sign in to comment.