Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 17:15 UTC
ci(cli): validate installer in clean containers
jkomyno committed
Aug 1, 2026 at 16:15 UTC
bd43e8f79e33633bcfafa862036dfa5b522127cc
1 file changed
+169
.github/workflows/cli.install-e2e.yml
new
+169
@@ -0,0 +1,169 @@
1
+name: CLI Install E2E
2
+
3
+on:
4
+ schedule:
5
+ - cron: '0 7 * * *'
6
+ workflow_dispatch:
7
+ pull_request:
8
+ paths:
9
+ - 'install.sh'
10
+ - 'install/**'
11
+ - 'test/install-sh-release-resolution.test.sh'
12
+ - 'ts/packages/cli/**'
13
+ - 'ts/packages/cli-local-tools/**'
14
+ - 'ts/e2e-tests/cli/install/**'
15
+ - 'ts/e2e-tests/_utils/**'
16
+ - '.github/actions/setup-node-pnpm-bun/action.yml'
17
+ - '.github/workflows/cli.install-e2e.yml'
18
+ - 'package.json'
19
+ - 'pnpm-lock.yaml'
20
+ - 'pnpm-workspace.yaml'
21
+ - 'turbo.jsonc'
22
+ - 'mise.toml'
23
+ - 'mise.lock'
24
+
25
+concurrency:
26
+ group: ${{ github.workflow }}-${{ github.ref }}
27
+ cancel-in-progress: false
28
+
29
+permissions:
30
+ contents: read
31
+
32
+jobs:
33
+ production:
34
+ name: Production install (${{ matrix.shell }}, ${{ matrix.version }})
35
+ if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
36
+ runs-on: ubuntu-latest
37
+ timeout-minutes: 20
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ include:
42
+ - shell: bash
43
+ version: latest
44
+ - shell: zsh
45
+ version: latest
46
+ - shell: zsh
47
+ version: '@composio/cli@0.3.1'
48
+
49
+ steps:
50
+ - name: Checkout
51
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
52
+
53
+ - name: Setup Node.js, pnpm, Bun
54
+ uses: ./.github/actions/setup-node-pnpm-bun
55
+
56
+ - name: Install dependencies
57
+ run: pnpm install --frozen-lockfile
58
+
59
+ - name: Test production installer
60
+ env:
61
+ COMPOSIO_INSTALL_E2E_MODE: prod
62
+ COMPOSIO_INSTALL_E2E_SHELL: ${{ matrix.shell }}
63
+ COMPOSIO_INSTALL_E2E_VERSION: ${{ matrix.version }}
64
+ run: pnpm test:e2e:install
65
+
66
+ - name: Send Slack notification on failure
67
+ if: failure()
68
+ uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0
69
+ with:
70
+ webhook: ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }}
71
+ webhook-type: incoming-webhook
72
+ payload: |
73
+ {
74
+ "text": "CLI install E2E failed\n*Case:* ${{ matrix.shell }} / ${{ matrix.version }}\n*Repository:* ${{ github.repository }}\n*Run:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Commit:* ${{ github.sha }}"
75
+ }
76
+
77
+ build-local-fixture:
78
+ name: Build local install fixture
79
+ if: github.event_name == 'pull_request'
80
+ runs-on: ubuntu-latest
81
+ timeout-minutes: 25
82
+
83
+ steps:
84
+ - name: Checkout
85
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
86
+
87
+ - name: Setup Node.js, pnpm, Bun
88
+ uses: ./.github/actions/setup-node-pnpm-bun
89
+ with:
90
+ enable-turbo-cache: 'true'
91
+ cache-save: 'false'
92
+
93
+ - name: Install dependencies
94
+ run: pnpm install --frozen-lockfile
95
+
96
+ - name: Typecheck install E2E suite
97
+ run: pnpm turbo typecheck --filter=@e2e-tests/cli-install
98
+
99
+ - name: Test upgrade through an entry-point symlink
100
+ working-directory: ts/packages/cli
101
+ run: pnpm vitest run test/src/services/upgrade-binary.test.ts
102
+
103
+ - name: Build packages
104
+ run: pnpm build:packages
105
+
106
+ - name: Build and package Linux fixture
107
+ working-directory: ts/packages/cli
108
+ env:
109
+ RELEASE_TAG: '@composio/cli@98.0.0'
110
+ run: |
111
+ pnpm build:binary:cross --target bun-linux-x64
112
+ pnpm build:binary:package
113
+ pnpm build:binary:checksums
114
+
115
+ - name: Verify and stage fixture
116
+ working-directory: ts/packages/cli
117
+ run: |
118
+ set -euo pipefail
119
+ fixture_dir="$RUNNER_TEMP/cli-install-fixture"
120
+ mkdir -p "$fixture_dir"
121
+ cp dist/binaries/composio-linux-x64.zip dist/binaries/checksums.txt "$fixture_dir/"
122
+ unzip -p "$fixture_dir/composio-linux-x64.zip" composio-linux-x64/release-tag.txt \
123
+ | grep -Fx '@composio/cli@98.0.0'
124
+ verify_dir=$(mktemp -d)
125
+ unzip -q "$fixture_dir/composio-linux-x64.zip" -d "$verify_dir"
126
+ test "$("$verify_dir/composio-linux-x64/composio" --version)" = 98.0.0
127
+
128
+ - name: Upload local fixture
129
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
130
+ with:
131
+ name: cli-install-linux-x64
132
+ path: ${{ runner.temp }}/cli-install-fixture
133
+ retention-days: 1
134
+
135
+ local-install:
136
+ name: Local install (${{ matrix.shell }})
137
+ if: github.event_name == 'pull_request'
138
+ needs: build-local-fixture
139
+ runs-on: ubuntu-latest
140
+ timeout-minutes: 20
141
+ strategy:
142
+ fail-fast: false
143
+ matrix:
144
+ shell: [zsh, bash]
145
+
146
+ steps:
147
+ - name: Checkout
148
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
149
+
150
+ - name: Setup Node.js, pnpm, Bun
151
+ uses: ./.github/actions/setup-node-pnpm-bun
152
+ with:
153
+ cache-save: 'false'
154
+
155
+ - name: Install dependencies
156
+ run: pnpm install --frozen-lockfile
157
+
158
+ - name: Download local fixture
159
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
160
+ with:
161
+ name: cli-install-linux-x64
162
+ path: ${{ runner.temp }}/cli-install-fixture
163
+
164
+ - name: Test local installer
165
+ env:
166
+ COMPOSIO_INSTALL_E2E_MODE: local
167
+ COMPOSIO_INSTALL_E2E_SHELL: ${{ matrix.shell }}
168
+ COMPOSIO_INSTALL_E2E_RELEASE_DIR: ${{ runner.temp }}/cli-install-fixture
169
+ run: pnpm test:e2e:install