This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Commit ce1f116
authored
chore: trigger supabase-js tests (#1098)
## What kind of change does this PR introduce?
CI/CD enhancement - Improves the preview release workflow and
cross-repository testing integration.
## What is the current behavior?
- Preview releases are created but there's no automated way to test
compatibility with downstream packages
- No cross-repository testing between `auth-js` and `supabase-js`
- Manual testing required to verify changes don't break integration
points
- Limited feedback loop for developers on cross-package compatibility
## What is the new behavior?
- **Automated Cross-Repo Testing**: Preview releases automatically
trigger compatibility tests in `supabase-js`
- **Smart Triggering**: Only runs on actual source code changes (src/,
package files, tsconfig) to avoid unnecessary builds
- **Enhanced Control**: Manual workflow dispatch with configurable
options for target branch and test triggering
- **Better UX**: PR comments show preview package URLs and test status
updates
- **Secure Integration**: Uses GitHub App authentication for
cross-repository workflow triggering
## Key Features
### 🚀 **Cross-Repository Test Integration**
- Automatically triggers `supabase-js` external tests when `auth-js`
changes are made
- Passes preview package URL and metadata to downstream tests
- Supports both PR and push-based workflows
### ⚡ **Optimized Triggering**
- **Path-based filtering**: Only triggers on meaningful changes
(`src/**`, `package.json`, etc.)
- **Label-based control**: PRs require `trigger: preview` label for
activation
- **Manual override**: Workflow dispatch with configurable target branch
### 💬 **Enhanced Feedback**
- Automated PR comments with preview package links
- Status updates on cross-repo test progress
- Clear visibility into the testing pipeline
### 🔒 **Secure Cross-Repo Access**
- GitHub App-based authentication for repository access
- Scoped permissions to `auth-js` and `supabase-js` repositories only
## Testing
This workflow enables:
- Early detection of breaking changes between `auth-js` and
`supabase-js`
- Automated compatibility verification for all preview releases
- Faster feedback cycles for developers working on authentication
features
- Reduced risk of integration issues in production releases
## Additional context
This enhancement creates a robust CI/CD pipeline that ensures `auth-js`
changes are automatically validated against its primary consumer
(`supabase-js`), significantly improving the development workflow and
reducing integration risks.
More context: supabase/supabase-js#15321 parent d59e1eb commit ce1f116
1 file changed
+131
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
7 | 20 | | |
8 | 21 | | |
9 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
10 | 30 | | |
11 | | - | |
| 31 | + | |
12 | 32 | | |
13 | 33 | | |
14 | 34 | | |
| 35 | + | |
15 | 36 | | |
16 | 37 | | |
17 | | - | |
18 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
19 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
20 | 47 | | |
21 | 48 | | |
22 | 49 | | |
| |||
33 | 60 | | |
34 | 61 | | |
35 | 62 | | |
36 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
0 commit comments