Skip to content

[LW-10194] unify codebase of the onboarding and multi-wallet flows #6295

[LW-10194] unify codebase of the onboarding and multi-wallet flows

[LW-10194] unify codebase of the onboarding and multi-wallet flows #6295

name: packages/staking
# Triggering this workflow:
# 1. Push to main/release branch
# 2. Pushing to Pull Request with "staking" label
# 3. Adding "staking" label to Pull Request
on:
pull_request:
push:
branches:
- 'main'
- 'release/**'
jobs:
build_staking:
name: Build Staking Center
runs-on: self-hosted
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'yarn'
- name: Node modules cache
uses: actions/cache@v4
with:
path: |
node_modules
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --inline-builds
- name: Check for linter issues
run: yarn workspace @lace/staking lint:all
- name: Build dependencies of Staking Center
run: yarn staking build-deps
- name: Run tests
run: yarn workspace @lace/staking test:unit
- name: Build Staking dist
env:
NODE_OPTIONS: '--max_old_space_size=8192'
run: yarn workspace @lace/staking build