Remove all remaining merge conflict markers in main.go and vault_serv… #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: ["*"] | |
| pull_request: | |
| branches: ["*"] | |
| jobs: | |
| website: | |
| name: Website (Next.js) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build website | |
| run: pnpm --filter @nester/website build | |
| - name: Lint website | |
| run: pnpm --filter @nester/website lint | |
| intelligence: | |
| name: Intelligence (Python) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/intelligence | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| pip install ruff mypy pytest | |
| - name: Lint | |
| run: ruff check . | |
| - name: Type check | |
| run: mypy app | |
| - name: Test | |
| run: pytest | |
| dapp-frontend: | |
| name: Dapp Frontend (Next.js) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/dapp/frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| dapp-backend: | |
| name: Dapp Backend (Node.js) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/dapp/backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: apps/dapp/backend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Lint | |
| run: npm run lint | |
| api: | |
| name: API (Go) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/api | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: apps/api/go.mod | |
| cache: true | |
| - name: Test | |
| run: go test ./... | |
| internal-stellar: | |
| name: Internal (Go) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check for Go module | |
| id: check | |
| run: | | |
| if [ -f "go.mod" ] && [ -d "internal" ]; then | |
| echo "has_module=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "has_module=false" >> $GITHUB_OUTPUT | |
| fi | |
| - uses: actions/setup-go@v5 | |
| if: steps.check.outputs.has_module == 'true' | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Run tests | |
| if: steps.check.outputs.has_module == 'true' | |
| run: go test -v -race ./internal/... | |
| - name: Check formatting | |
| if: steps.check.outputs.has_module == 'true' | |
| run: | | |
| if [ "$(gofmt -s -l ./internal | wc -l)" -gt 0 ]; then | |
| echo "Code formatting issues found" | |
| gofmt -s -d ./internal | |
| exit 1 | |
| fi | |
| - name: Run vet | |
| if: steps.check.outputs.has_module == 'true' | |
| run: go vet ./internal/... | |
| contracts: | |
| name: Contracts (Rust) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: packages/contracts | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - name: Add wasm32-unknown-unknown target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Build yield_registry WASM | |
| run: cargo build --release --target wasm32-unknown-unknown -p yield-registry-contract | |
| - name: Ensure yield_registry.wasm is available for allocation_strategy | |
| run: | | |
| mkdir -p contracts/allocation_strategy/../../../target/wasm32-unknown-unknown/release | |
| cp target/wasm32-unknown-unknown/release/yield_registry.wasm contracts/allocation_strategy/../../../target/wasm32-unknown-unknown/release/yield_registry.wasm | |
| - name: Build allocation_strategy WASM | |
| run: cargo build --release --target wasm32-unknown-unknown -p allocation-strategy-contract | |
| - name: Test contracts | |
| run: cargo test --lib |