Skip to content

Merge pull request #309 from Jemiiah/feature/four-issues #187

Merge pull request #309 from Jemiiah/feature/four-issues

Merge pull request #309 from Jemiiah/feature/four-issues #187

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 23, Col: 14): Unexpected value '', (Line: 24, Col: 9): Unexpected value 'node-version'
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Rust toolchain (matches contracts/ajo-circle/rust-toolchain.toml)
uses: dtolnay/[email protected]
with:
toolchain: 1.85.0
targets: wasm32-unknown-unknown
- name: Build & unit-test Soroban contract
working-directory: contracts/ajo-circle
run: |
cargo build --target wasm32-unknown-unknown --release
cargo test --lib
- name: Prisma Generate
run: pnpm prisma generate
- name: Run frontend unit tests
run: pnpm test:unit
- name: Next.js build
env:
DATABASE_URL: postgresql://ci:[email protected]:5432/ci
JWT_SECRET: ci-jwt-secret-must-be-at-least-32-chars-long
run: pnpm build