mirror of https://github.com/databricks/cli.git
Run push.yml periodically with clean cache (#2092)
This ensures that our build still works with clean cache and also populates build/test cache, speeding up test runs.
This commit is contained in:
parent
e6552231eb
commit
43420d01ad
|
@ -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:
|
||||
|
@ -61,6 +75,7 @@ jobs:
|
|||
run: make test
|
||||
|
||||
golangci:
|
||||
needs: cleanups
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -86,6 +101,7 @@ jobs:
|
|||
args: --timeout=15m
|
||||
|
||||
validate-bundle-schema:
|
||||
needs: cleanups
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue