2021-03-11 17:54:23 -05:00
|
|
|
const CI = require('./ci.js')
|
2018-04-20 18:26:37 -07:00
|
|
|
|
2024-04-30 23:53:22 -07:00
|
|
|
// npm install-ci-test
|
|
|
|
// Runs `npm ci` and then runs `npm test`
|
2021-03-11 17:54:23 -05:00
|
|
|
class InstallCITest extends CI {
|
2021-11-18 20:58:02 +00:00
|
|
|
static description = 'Install a project with a clean slate and run tests'
|
|
|
|
static name = 'install-ci-test'
|
2020-10-02 17:52:19 -04:00
|
|
|
|
2023-01-16 22:38:23 -05:00
|
|
|
async exec (args) {
|
2021-11-04 20:42:47 +00:00
|
|
|
await this.npm.exec('ci', args)
|
|
|
|
return this.npm.exec('test', [])
|
2021-03-04 17:40:28 -05:00
|
|
|
}
|
|
|
|
}
|
2024-04-30 23:53:22 -07:00
|
|
|
|
2021-03-04 17:40:28 -05:00
|
|
|
module.exports = InstallCITest
|