Skip to content

chore: add sponsored passkey send test (#245) #80

chore: add sponsored passkey send test (#245)

chore: add sponsored passkey send test (#245) #80

name: "Deploy Auth Server Testnet"
on:
push:
branches: [ "main" ]
paths:
- "packages/erc4337-contracts/**"
- "packages/sdk-platforms/rust/**"
- "packages/auth-server/**"
- "packages/sdk-4337/**"
workflow_dispatch:
env:
HUSKY: 0
CI: true
NUXT_PUBLIC_GTAG_ID: ${{ secrets.AUTH_SERVER_ANALYTICS_ID }}
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v4
with:
submodules: recursive
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.11.0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/Iron
cache: 'pnpm'
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install dependencies
run: pnpm install -r --frozen-lockfile
# Web SDK depends on ERC-4337 contracts for WASM build
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1.5.0
- name: Install ERC-4337 contract dependencies
run: forge soldeer install
working-directory: packages/erc4337-contracts
- name: Build ERC-4337 contracts
run: forge build
working-directory: packages/erc4337-contracts
- name: Build apps
env:
NUXT_PUBLIC_DEFAULT_CHAIN_ID: 8022833
NUXT_PUBLIC_AUTH_SERVER_API_URL: https://auth-server-api.stage-sso.zksync.dev
NUXT_PUBLIC_SALT_SERVICE_URL: "https://sso-oidc.zksync.dev/salt"
run: pnpm nx build auth-server
- name: Deploy firebase hosting
uses: matter-labs/action-hosting-deploy@main
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_AUTH_SERVER_STAGING }}"
projectId: zksync-auth-server-staging
target: zksync-auth-server-staging
channelId: live