Skip to content

test(profile): add page.test.tsx covering loading, disconnected, and connected states (fixes #240) #358

test(profile): add page.test.tsx covering loading, disconnected, and connected states (fixes #240)

test(profile): add page.test.tsx covering loading, disconnected, and connected states (fixes #240) #358

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-typecheck:
name: Lint & typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Reject non-standard registry URLs
run: '! grep -q "registry.npmmirror.com" package-lock.json'
- run: npm ci
- name: Lint
run: npm run lint
- name: Type check
run: npm run typecheck
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Reject non-standard registry URLs
run: '! grep -q "registry.npmmirror.com" package-lock.json'
- run: npm ci
- run: npm test
build:
name: Build
runs-on: ubuntu-latest
needs: [lint-typecheck]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Reject non-standard registry URLs
run: '! grep -q "registry.npmmirror.com" package-lock.json'
- run: npm ci
- name: Build
run: npm run build
env:
NEXT_PUBLIC_SOROBAN_RPC_URL: ${{ vars.NEXT_PUBLIC_SOROBAN_RPC_URL }}
NEXT_PUBLIC_NETWORK_PASSPHRASE: ${{ vars.NEXT_PUBLIC_NETWORK_PASSPHRASE }}
NEXT_PUBLIC_FACTORY_CONTRACT_ID: ${{ vars.NEXT_PUBLIC_FACTORY_CONTRACT_ID }}
NEXT_PUBLIC_GOVERNOR_CONTRACT_ID: ${{ vars.NEXT_PUBLIC_GOVERNOR_CONTRACT_ID }}