Initial commit: add .gitignore and README
Some checks failed
CI / lint-and-test (push) Has been cancelled
Some checks failed
CI / lint-and-test (push) Has been cancelled
This commit is contained in:
50
.github/workflows/ci.yml
vendored
Normal file
50
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, develop]
|
||||
pull_request:
|
||||
branches: [main, develop]
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Lint
|
||||
run: pnpm run lint
|
||||
|
||||
- name: Format check
|
||||
run: pnpm run format --check || true
|
||||
|
||||
- name: Compile contracts
|
||||
run: cd contracts && pnpm run compile
|
||||
|
||||
- name: Run contract tests
|
||||
run: cd contracts && pnpm run test
|
||||
|
||||
- name: Type check frontend
|
||||
run: cd frontend && pnpm run type-check
|
||||
|
||||
- name: Build frontend
|
||||
run: cd frontend && pnpm run build
|
||||
env:
|
||||
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: test
|
||||
NEXT_PUBLIC_SEPOLIA_RPC_URL: https://eth-sepolia.g.alchemy.com/v2/test
|
||||
|
||||
Reference in New Issue
Block a user