From 534f16c70d5608baabd0ffa1f5711fb52a4f116e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 6 Jul 2021 19:26:36 -0400 Subject: [PATCH] Auto-generated commit --- .github/workflows/benchmark.yml | 2 +- .github/workflows/examples.yml | 2 +- .github/workflows/test.yml | 17 +++++++---------- .github/workflows/test_coverage.yml | 17 +++++++---------- .github/workflows/test_install.yml | 10 +++++----- bin/cli | 2 +- package.json | 2 +- 7 files changed, 23 insertions(+), 29 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index dda052a..121f657 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 6d226cb..881e209 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 b24f0dd..087cebd 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 0699d78..dfcf102 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 e79722e..ed16345 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 fac7128..e876085 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 signature = require( './../lib' ); diff --git a/package.json b/package.json index 3aa7e4c..cff261b 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ }, "dependencies": { "@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": {