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 }}