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 Oct 11, 2023
1 parent d371350 commit df8f6a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
name: ci
on: [push, pull_request]

on:
schedule:
# Run the CI on the main branch every morning at 01:19 UTC
- cron: '19 1 * * *'

jobs:

################
Expand Down

0 comments on commit df8f6a2

Please sign in to comment.