Skip to content

Commit

Permalink
CI: Add nightly build
Browse files Browse the repository at this point in the history
Build master every night to detect early issues in tools and packages we
depend on.

Without this if some tool or package add incompatible change we detect
the issue only when someone post a PR, and it is not clear if the issue
is caused by the PR or by the system.

Fixes: RamenDR#566
Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
  • Loading branch information
Shwetha-Acharya committed Jul 12, 2023
1 parent b7becdd commit 95dad51
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
name: CI

# This workflow will run when developer push a topic branch to their
# fork in github, minimizing noise for maintainers.
# fork in github, minimizing noise for maintainers;
# It also runs on nightly basis at 12:00 AM
on: # yamllint disable-line rule:truthy
- push
- pull_request
- workflow_dispatch:
schedule:
- cron: '*/5 * * * *'

env:
# Values can be overriden by repository variables.
Expand Down Expand Up @@ -278,7 +282,8 @@ jobs:
(github.event_name == 'push') &&
(github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/heads/release-') ||
startsWith(github.ref, 'refs/tags/v'))
startsWith(github.ref, 'refs/tags/v')) &&
(github.event_name == 'workflow_dispatch')
runs-on: ubuntu-20.04
steps:
- name: Download image artifact
Expand Down

0 comments on commit 95dad51

Please sign in to comment.