diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index dda052a5..121f6573 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -34,7 +34,7 @@ jobs: node-version: 15 - name: Install production and development dependencies run: | - npm install + npm install || npm install || npm install - name: Run benchmarks run: | npm run benchmark diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 6d226cbd..881e2097 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -34,7 +34,7 @@ jobs: node-version: 15 - name: Install production and development dependencies run: | - npm install + npm install || npm install || npm install - name: Run examples run: | npm run examples diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b24f0dd0..087cebda 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,9 @@ name: build # Workflow triggers: on: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '30 1 * * 6' workflow_dispatch: # Workflow jobs: @@ -36,18 +39,12 @@ jobs: node-version: 15 - name: Install production and development dependencies id: install - uses: nick-invision/retry@v2 - with: - timeout_minutes: 2 - max_attempts: 3 - command: npm install + run: | + npm install || npm install || npm install - name: Run tests id: tests - uses: nick-invision/retry@v2 - with: - timeout_minutes: 3 - max_attempts: 2 - command: npm test + run: | + npm test || npm test || npm test - uses: act10ns/slack@v1 with: status: ${{ job.status }} diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 0699d785..dfcf1023 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -21,6 +21,9 @@ name: coverage # Workflow triggers: on: + workflow_run: + workflows: ["build"] + types: [completed] workflow_dispatch: # Workflow jobs: @@ -33,17 +36,11 @@ jobs: with: node-version: 15 - name: Install production and development dependencies - uses: nick-invision/retry@v2 - with: - timeout_minutes: 2 - max_attempts: 3 - command: npm install + run: | + npm install || npm install || npm install - name: Calculate test coverage - uses: nick-invision/retry@v2 - with: - timeout_minutes: 3 - max_attempts: 2 - command: npm run test-cov + run: | + npm run test-cov || npm run test-cov || npm run test-cov - name: Upload coverage to Codecov id: upload uses: codecov/codecov-action@v1 diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index e79722e3..ed16345d 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -21,6 +21,9 @@ name: Test Installing Dependencies # Workflow triggers: on: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '30 1 * * 6' workflow_run: workflows: ["Publish Package"] types: [completed] @@ -38,11 +41,8 @@ jobs: with: node-version: 15 - name: Install production dependencies via npm - uses: nick-invision/retry@v2 - with: - timeout_minutes: 2 - max_attempts: 3 - command: npm install --only=prod + run: | + npm install --only=prod || npm install --only=prod || npm install --only=prod - uses: act10ns/slack@v1 with: status: ${{ job.status }} diff --git a/bin/cli b/bin/cli index 3c35b817..26bf674d 100644 --- a/bin/cli +++ b/bin/cli @@ -24,7 +24,7 @@ var resolve = require( 'path' ).resolve; var readFileSync = require( '@stdlib/fs-read-file' ).sync; -var CLI = require( '@stdlib/cli' ); +var CLI = require( '@stdlib/cli-ctor' ); var info = require( './../lib' ); diff --git a/package.json b/package.json index 384dbea9..ffc3338a 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "dependencies": { "@stdlib/assert-has-own-property": "^0.0.x", "@stdlib/assert-is-string": "^0.0.x", - "@stdlib/cli": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", "@stdlib/fs-read-file": "^0.0.x" }, "devDependencies": {