Skip to content

Commit f0f087c

Browse files
committed
ci: enable tilt
1 parent a7a7599 commit f0f087c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/tilt.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tilt CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
tilt:
12+
runs-on: tilt-kube-public
13+
14+
# Cancel previous builds on the same branch/ref. Full runs are expensive
15+
# and capacity is limited, so we want to avoid running multiple builds
16+
# in parallel even if it means skipping CI runs on permanent branches
17+
# (unfortunately, we can't differentiate between temporary and permanent
18+
# refs without duplicating the entire logic).
19+
concurrency:
20+
group: ${{ github.workflow }}-tilt-${{ github.ref }}
21+
cancel-in-progress: true
22+
23+
steps:
24+
- name: Clear repository
25+
run: |
26+
rm -rf $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
27+
- uses: actions/checkout@v2
28+
- name: Expand for link to Tilt dashboard (only available during build)
29+
run: >
30+
echo "Tilt progress dashboard: https://$DASHBOARD_URL"
31+
- run: |
32+
kubectl config set-context ci --namespace=$DEPLOY_NS
33+
kubectl config use-context ci
34+
35+
- run: tilt ci -- --evm2 --namespace=$DEPLOY_NS
36+
timeout-minutes: 60
37+
38+
# Clean up k8s resources
39+
- run: kubectl delete --namespace=$DEPLOY_NS service,statefulset,configmap,pod,job --all
40+
if: always()

0 commit comments

Comments
 (0)