Skip to content

Commit 0aab07a

Browse files
Fix tilt GitHub action by combining
1 parent c87289d commit 0aab07a

File tree

2 files changed

+41
-87
lines changed

2 files changed

+41
-87
lines changed

.github/workflows/catalogd-tilt.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/tilt.yaml

Lines changed: 41 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,50 @@
1+
name: Tilt
2+
13
on:
24
pull_request:
35
paths:
4-
- '.bingo/**'
5-
- '.github/workflows/tilt.yaml'
6-
- 'api/**'
7-
- 'cmd/**'
8-
- 'config/**'
9-
- 'internal/**'
10-
- 'pkg/**'
11-
- 'Tiltfile'
6+
- '.bingo/**'
7+
- '.github/workflows/**'
8+
- 'api/**'
9+
- 'cmd/**'
10+
- 'config/**'
11+
- 'internal/**'
12+
- 'pkg/**'
13+
- 'Tiltfile'
14+
- 'catalogd/**'
1215
merge_group:
1316

1417
jobs:
1518
tilt:
1619
runs-on: ubuntu-latest
1720
steps:
18-
- uses: actions/checkout@v4
19-
with:
20-
repository: operator-framework/tilt-support
21-
path: tilt-support
22-
- uses: actions/checkout@v4
23-
with:
24-
path: operator-controller
25-
- name: Get catalogd version
26-
id: get-catalogd-version
27-
run: |
28-
cd operator-controller
29-
echo "CATALOGD_VERSION=$(go list -mod=mod -m -f "{{.Version}}" github.com/operator-framework/catalogd)" >> "$GITHUB_OUTPUT"
30-
- uses: actions/checkout@v4
31-
with:
32-
repository: operator-framework/catalogd
33-
path: catalogd
34-
ref: "${{ steps.get-catalogd-version.outputs.CATALOGD_VERSION }}"
35-
- name: Install Go
36-
uses: actions/setup-go@v5
37-
with:
38-
go-version-file: "operator-controller/go.mod"
39-
- name: Install Tilt
40-
run: |
41-
TILT_VERSION="0.33.3"
42-
curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v$TILT_VERSION/tilt.$TILT_VERSION.linux.x86_64.tar.gz | \
43-
tar -xzv -C /usr/local/bin tilt
44-
- name: Set up kind
45-
run: |
46-
cd operator-controller
47-
make kind-cluster
48-
- name: Test Tilt
49-
run: |
50-
cd operator-controller
51-
tilt ci
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Clone tilt-support
25+
run: |
26+
git clone https://github.com/operator-framework/tilt-support ../tilt-support
27+
- name: Install Go
28+
uses: actions/setup-go@v5
29+
with:
30+
go-version-file: go.mod
31+
- name: Install Tilt
32+
run: |
33+
TILT_VERSION="0.33.3"
34+
curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v$TILT_VERSION/tilt.$TILT_VERSION.linux.x86_64.tar.gz | \
35+
tar -xzv -C /usr/local/bin tilt
36+
- name: Install ctlptl
37+
run: |
38+
CTLPTL_VERSION="0.8.20"
39+
curl -fsSL https://github.com/tilt-dev/ctlptl/releases/download/v$CTLPTL_VERSION/ctlptl.$CTLPTL_VERSION.linux.x86_64.tar.gz | \
40+
tar -xzv -C /usr/local/bin ctlptl
41+
- name: Set up kind
42+
run: ctlptl create cluster kind --registry=ctlptl-registry
43+
- name: Test Tilt for Operator Controller
44+
run: |
45+
cd operator-controller
46+
tilt ci
47+
- name: Test Tilt for Catalogd
48+
run: |
49+
cd catalogd
50+
tilt ci

0 commit comments

Comments
 (0)