Skip to content

Commit 9433d0c

Browse files
authored
Merge branch 'main' into main
2 parents f802caa + 9509b89 commit 9433d0c

48 files changed

Lines changed: 4488 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/backend-governance.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ jobs:
4242
echo "❌ openapi.json is out of date. Run 'npm run generate:openapi' locally and commit the changes."
4343
git diff openapi.json
4444
exit 1
45-
fi
45+
fi
46+
47+
- name: Check for database schema drift
48+
run: npm run db:check-drift

.github/workflows/cypress.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Cypress Smoke Tests
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'frontend/**'
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- 'frontend/**'
12+
13+
jobs:
14+
cypress-run:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
cache: 'npm'
25+
cache-dependency-path: frontend/package-lock.json
26+
27+
- name: Install dependencies
28+
working-directory: frontend
29+
run: npm ci
30+
31+
- name: Cypress run
32+
uses: cypress-io/github-action@v6
33+
with:
34+
working-directory: frontend
35+
start: npm run dev
36+
wait-on: 'http://localhost:5173'
37+
browser: chrome
38+
spec: cypress/e2e/smoke.cy.ts
39+
env:
40+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
41+
42+
- name: Upload screenshots on failure
43+
uses: actions/upload-artifact@v4
44+
if: failure()
45+
with:
46+
name: cypress-screenshots
47+
path: frontend/cypress/screenshots

.github/workflows/rust-wasm.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,40 @@ jobs:
8383
uses: actions/upload-artifact@v4
8484
with:
8585
name: wasm-artifacts
86-
path: artifacts/wasm
86+
path: artifacts/wasm
87+
88+
testnet-deploy:
89+
name: Testnet deploy & smoke test
90+
runs-on: ubuntu-latest
91+
needs: wasm-build
92+
# Only run on push to main — not on pull requests
93+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
94+
steps:
95+
- name: Checkout
96+
uses: actions/checkout@v4
97+
98+
- name: Download WASM artifacts
99+
uses: actions/download-artifact@v4
100+
with:
101+
name: wasm-artifacts
102+
path: artifacts/wasm
103+
104+
- name: Verify vault WASM is present
105+
run: ls -la artifacts/wasm/
106+
107+
- name: Install Stellar CLI
108+
uses: stellar/stellar-cli@v23.0.1
109+
110+
- name: Deploy contract and run smoke test
111+
env:
112+
TESTNET_SECRET_KEY: ${{ secrets.TESTNET_SECRET_KEY }}
113+
TESTNET_TOKEN_ADDRESS: ${{ secrets.TESTNET_TOKEN_ADDRESS }}
114+
GIT_SHA: ${{ github.sha }}
115+
run: bash contracts/vault/scripts/smoke-test.sh
116+
117+
- name: Upload deployment artifact
118+
uses: actions/upload-artifact@v4
119+
with:
120+
name: testnet-deployment
121+
path: deployment.json
122+
retention-days: 7
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"specId": "1e0f4317-5877-48ed-83d6-8c0622026c5f", "workflowType": "requirements-first", "specType": "feature"}

0 commit comments

Comments
 (0)