Skip to content

Commit

Permalink
Run push.yml periodically with clean cache (#2092)
Browse files Browse the repository at this point in the history
This ensures that our build still works with clean cache and also
populates build/test cache, speeding up test runs.
  • Loading branch information
denik authored Jan 7, 2025
1 parent e655223 commit 43420d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,26 @@ on:
# seed the build cache.
branches:
- main
schedule:
- cron: '0 0,12 * * *' # Runs at 00:00 and 12:00 UTC daily

env:
GOTESTSUM_FORMAT: github-actions

jobs:
cleanups:
runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
steps:
- name: Clean up cache if running on schedule
if: ${{ github.event_name == 'schedule' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh cache delete --all --repo databricks/cli || true

tests:
needs: cleanups
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -61,6 +75,7 @@ jobs:
run: make test

golangci:
needs: cleanups
name: lint
runs-on: ubuntu-latest
steps:
Expand All @@ -86,6 +101,7 @@ jobs:
args: --timeout=15m

validate-bundle-schema:
needs: cleanups
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 43420d0

Please sign in to comment.