diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f4035f8..53a741ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [12, 14, 16] + node-version: [14, 16] steps: - uses: actions/checkout@v2.1.1 diff --git a/modules/dev-tools/scripts/bootstrap.js b/modules/dev-tools/scripts/bootstrap.js index 6a1198e0..30434846 100755 --- a/modules/dev-tools/scripts/bootstrap.js +++ b/modules/dev-tools/scripts/bootstrap.js @@ -3,5 +3,7 @@ const shell = require('shelljs'); const path = require('path'); -// Runs the bash script and forward the arguments -shell.exec(`${path.resolve(__dirname, './bootstrap.sh')} ${process.argv.slice(2).join(' ')}`); +// Runs the bash script and forward the arguments, exiting with the same code +shell.exit( + shell.exec(`${path.resolve(__dirname, './bootstrap.sh')} ${process.argv.slice(2).join(' ')}`).code +); diff --git a/modules/dev-tools/scripts/build.js b/modules/dev-tools/scripts/build.js index 7ec3bf79..be4ddef3 100755 --- a/modules/dev-tools/scripts/build.js +++ b/modules/dev-tools/scripts/build.js @@ -3,5 +3,7 @@ const shell = require('shelljs'); const path = require('path'); -// Runs the bash script and forward the arguments -shell.exec(`${path.resolve(__dirname, './build.sh')} ${process.argv.slice(2).join(' ')}`); +// Runs the bash script and forward the arguments, exiting with the same code +shell.exit( + shell.exec(`${path.resolve(__dirname, './build.sh')} ${process.argv.slice(2).join(' ')}`).code +); diff --git a/modules/dev-tools/scripts/clean.js b/modules/dev-tools/scripts/clean.js index 5163f5d1..bc44993a 100755 --- a/modules/dev-tools/scripts/clean.js +++ b/modules/dev-tools/scripts/clean.js @@ -3,5 +3,7 @@ const shell = require('shelljs'); const path = require('path'); -// Runs the bash script and forward the arguments -shell.exec(`${path.resolve(__dirname, './clean.sh')} ${process.argv.slice(2).join(' ')}`); +// Runs the bash script and forward the arguments, exiting with the same code +shell.exit( + shell.exec(`${path.resolve(__dirname, './clean.sh')} ${process.argv.slice(2).join(' ')}`).code +); diff --git a/modules/dev-tools/scripts/lint.js b/modules/dev-tools/scripts/lint.js index d40b4c2f..246a6c96 100755 --- a/modules/dev-tools/scripts/lint.js +++ b/modules/dev-tools/scripts/lint.js @@ -3,5 +3,7 @@ const shell = require('shelljs'); const path = require('path'); -// Runs the bash script and forward the arguments -shell.exec(`${path.resolve(__dirname, './lint.sh')} ${process.argv.slice(2).join(' ')}`); +// Runs the bash script and forward the arguments, exiting with the same code +shell.exit( + shell.exec(`${path.resolve(__dirname, './lint.sh')} ${process.argv.slice(2).join(' ')}`).code +); diff --git a/modules/dev-tools/scripts/metrics.js b/modules/dev-tools/scripts/metrics.js index aa0419d4..eae09a75 100755 --- a/modules/dev-tools/scripts/metrics.js +++ b/modules/dev-tools/scripts/metrics.js @@ -3,5 +3,7 @@ const shell = require('shelljs'); const path = require('path'); -// Runs the bash script and forward the arguments -shell.exec(`${path.resolve(__dirname, './metrics.sh')} ${process.argv.slice(2).join(' ')}`); +// Runs the bash script and forward the arguments, exiting with the same code +shell.exit( + shell.exec(`${path.resolve(__dirname, './metrics.sh')} ${process.argv.slice(2).join(' ')}`).code +); diff --git a/modules/dev-tools/scripts/publish.js b/modules/dev-tools/scripts/publish.js index 0bdef358..b2027dc6 100755 --- a/modules/dev-tools/scripts/publish.js +++ b/modules/dev-tools/scripts/publish.js @@ -3,5 +3,7 @@ const shell = require('shelljs'); const path = require('path'); -// Runs the bash script and forward the arguments -shell.exec(`${path.resolve(__dirname, './publish.sh')} ${process.argv.slice(2).join(' ')}`); +// Runs the bash script and forward the arguments, exiting with the same code +shell.exit( + shell.exec(`${path.resolve(__dirname, './publish.sh')} ${process.argv.slice(2).join(' ')}`).code +); diff --git a/modules/dev-tools/scripts/test.js b/modules/dev-tools/scripts/test.js index 61820906..f69afe5c 100755 --- a/modules/dev-tools/scripts/test.js +++ b/modules/dev-tools/scripts/test.js @@ -3,5 +3,7 @@ const shell = require('shelljs'); const path = require('path'); -// Runs the bash script and forward the arguments -shell.exec(`${path.resolve(__dirname, './test.sh')} ${process.argv.slice(2).join(' ')}`); +// Runs the bash script and forward the arguments, exiting with the same code +shell.exit( + shell.exec(`${path.resolve(__dirname, './test.sh')} ${process.argv.slice(2).join(' ')}`).code +);