|
11 | 11 | commit:
|
12 | 12 | description: If the commit you want to test isn't the head of a branch, provide its SHA here
|
13 | 13 | required: false
|
| 14 | + schedule: |
| 15 | + # Run every day at midnight (without cache) |
| 16 | + - cron: '0 0 * * *' |
14 | 17 |
|
15 | 18 | # Cancel in progress workflows on pull_requests.
|
16 | 19 | # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
|
@@ -141,7 +144,7 @@ jobs:
|
141 | 144 | has_gitflow_label:
|
142 | 145 | ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
|
143 | 146 | force_skip_cache:
|
144 |
| - ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') }} |
| 147 | + ${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ')) }} |
145 | 148 |
|
146 | 149 | job_install_deps:
|
147 | 150 | name: Install Dependencies
|
@@ -205,9 +208,8 @@ jobs:
|
205 | 208 | - name: NX cache
|
206 | 209 | uses: actions/cache@v3
|
207 | 210 | # Disable cache when:
|
208 |
| - # - on develop |
209 | 211 | # - on release branches
|
210 |
| - # - when PR has `ci-skip-cache` label |
| 212 | + # - when PR has `ci-skip-cache` label or on nightly builds |
211 | 213 | if: |
|
212 | 214 | needs.job_get_metadata.outputs.is_release == 'false' &&
|
213 | 215 | needs.job_get_metadata.outputs.force_skip_cache == 'false'
|
@@ -429,7 +431,7 @@ jobs:
|
429 | 431 | job_node_unit_tests:
|
430 | 432 | name: Node (${{ matrix.node }}) Unit Tests
|
431 | 433 | needs: [job_get_metadata, job_build]
|
432 |
| - timeout-minutes: 30 |
| 434 | + timeout-minutes: 10 |
433 | 435 | runs-on: ubuntu-20.04
|
434 | 436 | strategy:
|
435 | 437 | fail-fast: false
|
@@ -467,7 +469,7 @@ jobs:
|
467 | 469 | name: Nextjs (Node ${{ matrix.node }}) Tests
|
468 | 470 | needs: [job_get_metadata, job_build]
|
469 | 471 | if: needs.job_get_metadata.outputs.changed_nextjs == 'true' || github.event_name != 'pull_request'
|
470 |
| - timeout-minutes: 30 |
| 472 | + timeout-minutes: 15 |
471 | 473 | runs-on: ubuntu-20.04
|
472 | 474 | strategy:
|
473 | 475 | fail-fast: false
|
@@ -526,6 +528,7 @@ jobs:
|
526 | 528 | needs: [job_get_metadata, job_build]
|
527 | 529 | if: needs.job_get_metadata.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
|
528 | 530 | runs-on: ubuntu-20.04
|
| 531 | + timeout-minutes: 15 |
529 | 532 | strategy:
|
530 | 533 | fail-fast: false
|
531 | 534 | matrix:
|
|
0 commit comments