Enforce npm node version
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2022-10-06 11:32:13 +02:00
parent 11da463972
commit 22187c1450
7 changed files with 24979 additions and 4 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
engine-strict=true

View File

@ -7,13 +7,18 @@ process.on('warning', warning => {
console.log(warning.stack); console.log(warning.stack);
}); });
process.on('exit', async function() {
if (container) await container.rm();
});
let container;
async function test() { async function test() {
let isCI = false; let isCI = false;
if (process.argv[2] === 'ci') if (process.argv[2] === 'ci')
isCI = true; isCI = true;
const container = new Docker(); container = new Docker();
await container.run(isCI); await container.run(isCI);
dataSources = JSON.parse(JSON.stringify(dataSources)); dataSources = JSON.parse(JSON.stringify(dataSources));
@ -41,8 +46,6 @@ async function test() {
} }
})); }));
jasmine.exitOnCompletion = false;
if (isCI) { if (isCI) {
const JunitReporter = require('jasmine-reporters'); const JunitReporter = require('jasmine-reporters');
jasmine.addReporter(new JunitReporter.JUnitXmlReporter()); jasmine.addReporter(new JunitReporter.JUnitXmlReporter());

23215
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,8 @@
"url": "https://gitea.verdnatura.es/verdnatura/salix" "url": "https://gitea.verdnatura.es/verdnatura/salix"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=14",
"npm": ">=8"
}, },
"dependencies": { "dependencies": {
"axios": "^0.25.0", "axios": "^0.25.0",

1
print/.npmrc Normal file
View File

@ -0,0 +1 @@
engine-strict=true

1750
print/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,10 @@
"type": "git", "type": "git",
"url": "https://git.verdnatura.es/salix" "url": "https://git.verdnatura.es/salix"
}, },
"engines": {
"node": ">=14",
"npm": ">=8"
},
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"fs-extra": "^7.0.1", "fs-extra": "^7.0.1",