Skip to content

Commit f2f73b2

Browse files
authored
Merge pull request #182 from rh-ai-quickstart/rj_daily_run
chore(test): create tests that run each day at 10am.
2 parents 8793d48 + 762bb82 commit f2f73b2

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

‎.github/workflows/e2e-tests.yaml‎

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: E2E Tests
22

3-
on: [pull_request, push, workflow_dispatch]
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
- main
8+
push:
9+
branches:
10+
- dev
11+
- main
12+
workflow_dispatch:
13+
schedule:
14+
# Daily at 10:00 UTC. GitHub Actions does not support local timezones for cron.
15+
- cron: "0 10 * * *"
416

517
# MaaS configuration - can be overridden with repository secrets for different environments
618
env:
@@ -76,7 +88,7 @@ jobs:
7688
timeout-minutes: 60
7789
needs: unit-tests
7890
# Skip this job for fork PRs since secrets are not available
79-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
91+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
8092

8193
steps:
8294
- name: Checkout repository
@@ -511,7 +523,14 @@ jobs:
511523
timeout-minutes: 60
512524
needs: [unit-tests, integration-tests]
513525
# Skip this job for fork PRs since secrets are not available
514-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
526+
if: |
527+
github.event_name == 'push' ||
528+
github.event_name == 'workflow_dispatch' ||
529+
github.event_name == 'schedule' ||
530+
(
531+
github.event_name == 'pull_request' &&
532+
github.event.pull_request.head.repo.full_name == github.repository
533+
)
515534
516535
steps:
517536
- name: Checkout repository

0 commit comments

Comments
 (0)