Skip to content

Commit

Permalink
[ci] Run the CI daily on main branch
Browse files Browse the repository at this point in the history
This has two benefits: First, we ensure that the main branch works even
if the runners/dependencies update. Second, GitHub's caches are scoped.
They only work among commits of the same branch, except from the default
branch. (https://github.com/actions/cache#cache-scopes) Therefore, if we
ensure that the main branch is always cached, we should always hit the
caches and have quick turnaround times on all our branches and PRs.
  • Loading branch information
SamuelRiedel committed Nov 13, 2023
1 parent 5cba362 commit b58b5e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
# SPDX-License-Identifier: Apache-2.0

name: ci
on: [push, pull_request]
on:
push:
pull_request:
schedule:
# Run the CI on the main branch every morning at 01:19 UTC
- cron: '19 1 * * *'

jobs:

Expand Down

0 comments on commit b58b5e5

Please sign in to comment.