You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const body = `## ⚠️ API Compatibility Warning\n\nPotential breaking changes detected in this PR:\n\n\`\`\`\n${changes}\n\`\`\`\n\nIf these changes are intentional breaking changes, please:\n1. Include "BREAKING CHANGE" in the PR title\n2. Document the changes in CHANGELOG.md\n3. Update the appropriate version number following semantic versioning`;
144
+
145
+
github.rest.issues.createComment({
146
+
issue_number: context.issue.number,
147
+
owner: context.repo.owner,
148
+
repo: context.repo.repo,
149
+
body: body
150
+
});
151
+
152
+
contract-test-verification:
153
+
name: Verify Interface Contracts
154
+
runs-on: ubuntu-latest
155
+
steps:
156
+
- name: Checkout code
157
+
uses: actions/checkout@v3
158
+
159
+
- name: Set up Go
160
+
uses: actions/setup-go@v3
161
+
with:
162
+
go-version: 1.21
163
+
164
+
- name: Run contract tests
165
+
run: |
166
+
# Check if contracts package exists
167
+
if [ -d "./pkg/core/contracts" ]; then
168
+
echo "Running contract tests"
169
+
go test -v ./pkg/core/contracts/...
170
+
171
+
# As more contract tests are added, add them here:
172
+
# go test -v ./pkg/services/auth/contracts/...
173
+
# go test -v ./pkg/services/transfer/contracts/...
174
+
# etc.
175
+
else
176
+
echo "Contracts package not found. This is expected for first-time runs."
0 commit comments