|
| 1 | +name: Tilt |
| 2 | + |
1 | 3 | on: |
2 | 4 | pull_request: |
3 | 5 | 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/**' |
12 | 15 | merge_group: |
13 | 16 |
|
14 | 17 | jobs: |
15 | 18 | tilt: |
16 | 19 | runs-on: ubuntu-latest |
17 | 20 | 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