Skip to content

build(deps): bump @openzeppelin/confidential-contracts from 0.3.1 to 0.4.0 #63

build(deps): bump @openzeppelin/confidential-contracts from 0.3.1 to 0.4.0

build(deps): bump @openzeppelin/confidential-contracts from 0.3.1 to 0.4.0 #63

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
# ═══════════════════════════════════════════════════════
# Stage 1: Build (parallel)
# ═══════════════════════════════════════════════════════
build-contracts:
name: Build Contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- run: npx hardhat compile
build-sdk:
name: Build SDK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- run: cd sdk && npm ci --legacy-peer-deps
- run: cd sdk && npx tsup
lint:
name: Solhint & Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- run: npx solhint "contracts/**/*.sol"
- run: npx prettier --check "sdk/src/**/*.ts" "packages/**/*.ts"
# ═══════════════════════════════════════════════════════
# Stage 2: Test (parallel, after respective builds)
# ═══════════════════════════════════════════════════════
test-contracts:
name: Contract Tests
runs-on: ubuntu-latest
needs: build-contracts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- name: Patch hardhat-plugin version check
run: |
find node_modules/@fhevm/hardhat-plugin -name "constants.ts" -o -name "constants.js" | while read f; do
sed -i 's/version: "0\.4\.[0-9]*"/version: "0.4.2"/' "$f"
echo "Patched: $f"
done
- run: npx hardhat test
test-sdk:
name: SDK Tests
runs-on: ubuntu-latest
needs: build-sdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- run: cd sdk && npm ci --legacy-peer-deps
- run: cd sdk && npx vitest run
test-virtuals-plugin:
name: Virtuals Plugin Tests
runs-on: ubuntu-latest
needs: build-sdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- run: cd sdk && npm ci --legacy-peer-deps && cd .. && cd sdk && npx tsup
- run: cd packages/virtuals-plugin && npm install --legacy-peer-deps
- run: cd packages/virtuals-plugin && npx vitest run
test-openclaw-skill:
name: OpenClaw Skill Tests
runs-on: ubuntu-latest
needs: build-sdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- run: cd sdk && npm ci --legacy-peer-deps && npx tsup
- run: cd packages/openclaw-skill && npm install --legacy-peer-deps
- run: cd packages/openclaw-skill && npx vitest run
test-mcp-server:
name: MCP Server Tests
runs-on: ubuntu-latest
needs: build-sdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: cd packages/mcp-server && npm ci
- run: cd packages/mcp-server && npm test
test-agentkit-plugin:
name: Agentkit Plugin Tests
runs-on: ubuntu-latest
needs: build-sdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: cd packages/agentkit-plugin && npm ci
- run: cd packages/agentkit-plugin && npm test
# ═══════════════════════════════════════════════════════
# Stage 3: Security (after all tests pass)
# ═══════════════════════════════════════════════════════
security:
name: Security Audit
runs-on: ubuntu-latest
needs: [test-contracts, test-sdk]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci --legacy-peer-deps
- name: npm audit
run: npm audit --audit-level=critical || true
- name: Solhint strict
run: npx solhint "contracts/**/*.sol" --max-warnings 0