diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0dc4e9d..5d6a972 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,13 @@ jobs: os: [windows-latest, ubuntu-latest, macos-latest] node-version: [lts/gallium, lts/fermium] steps: - - uses: actions/checkout@v3 - - name: Use Node.js LTS versions (v10-v16) - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: yarn + architecture: x64 - run: yarn --frozen-lockfile --network-timeout 1000000 env: CI: true diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..ae96860 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 16.20.2 diff --git a/package.json b/package.json index 2bfef49..b5ba610 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,17 @@ "license": "ISC", "main": "lib/index.js", "repository": "heroku/heroku-cli-command", + "mocha": { + "require": [ + "test/helpers/init.js", + "ts-node/register", + "source-map-support/register" + ], + "watch-extensions": "ts", + "recursive": true, + "reporter": "spec", + "timeout": 360000 + }, "scripts": { "build": "rm -rf lib && tsc", "lint": "tsc -p test --noEmit && tslint -p test -t stylish", diff --git a/test/mocha.opts b/test/mocha.opts deleted file mode 100644 index ccc7f34..0000000 --- a/test/mocha.opts +++ /dev/null @@ -1,7 +0,0 @@ ---require test/helpers/init.js ---require ts-node/register ---require source-map-support/register ---watch-extensions ts ---recursive ---reporter spec ---timeout 5000