Skip to content

Bump the npm-minor group across 1 directory with 11 updates #54

Bump the npm-minor group across 1 directory with 11 updates

Bump the npm-minor group across 1 directory with 11 updates #54

Workflow file for this run

name: Build Project and Run Tests
on:
push:
branches: ["main", "develop"]
pull_request:
env:
CARGO_TERM_COLOR: always
PKG_CONFIG_PATH: /usr/lib/pkgconfig
PUBLIC_STELLAR_NETWORK: local
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
runner/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup target add wasm32v1-none
- run: sudo apt-get update && sudo apt-get install -y libudev-dev libdbus-1-dev pkg-config
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@main
- name: Check for stellar-scaffold binary
run: |
if ! command -v stellar-scaffold &> /dev/null; then
echo "stellar-scaffold not found, installing..."
cargo binstall stellar-scaffold-cli
else
echo "stellar-scaffold already installed."
fi
- run: npm ci
- run: npm run lint
- run: npx prettier . --check
- name: Build with Scaffold and build client packages
run: STELLAR_SCAFFOLD_ENV=development stellar-scaffold build --build-clients 2>&1 | tee build_clients.log
- name: Check client generation summary
run: |
FAILED=$(grep -Eo "Failed: [0-9]+" build_clients.log | awk '{print $2}')
if [ -z "$FAILED" ]; then
echo "All clients succeeded."
exit 0
fi
if [ "$FAILED" -gt 0 ]; then
echo "Client generation failed: $FAILED"
exit 1
fi
- run: npm run install:contracts
- run: npm run build
- name: Run frontend tests
run: npm test --if-present --workspace=frontend
- name: Run backend tests
run: cd backend && npm ci && npm test