Skip to content

Commit 6341d5c

Browse files
committed
Add CI for tilt
Signed-off-by: Andy Goldstein <[email protected]>
1 parent c145c46 commit 6341d5c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/tilt.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- '.bingo/**'
5+
- '.github/workflows/tilt.yaml'
6+
- 'api/**'
7+
- 'cmd/**'
8+
- 'config/**'
9+
- 'internal/**'
10+
- 'pkg/**'
11+
- 'Tiltfile'
12+
merge_group:
13+
14+
jobs:
15+
tilt:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
repository: operator-framework/tilt-support
21+
path: tilt-support
22+
- uses: actions/checkout@v3
23+
with:
24+
path: operator-controller
25+
- name: Install Tilt
26+
run: |
27+
TILT_VERSION="0.33.3"
28+
curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v$TILT_VERSION/tilt.$TILT_VERSION.linux.x86_64.tar.gz | \
29+
tar -xzv -C /usr/local/bin tilt
30+
- name: Install ctlptl
31+
run: |
32+
CTLPTL_VERSION="0.8.20"
33+
curl -fsSL https://github.com/tilt-dev/ctlptl/releases/download/v$CTLPTL_VERSION/ctlptl.$CTLPTL_VERSION.linux.x86_64.tar.gz | \
34+
tar -xzv -C /usr/local/bin ctlptl
35+
- name: Set up kind
36+
run: ctlptl create cluster kind --registry=ctlptl-registry
37+
- name: Test Tilt
38+
run: |
39+
cd operator-controller
40+
tilt ci

0 commit comments

Comments
 (0)