mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-11-29 08:25:10 +00:00
41 lines
957 B
YAML
41 lines
957 B
YAML
name: M3c AMM CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- feat/stomach-economic-organ
|
|
paths:
|
|
- "core/src/economy/sims/amm/**"
|
|
- ".github/workflows/m3c-amm.yml"
|
|
pull_request:
|
|
paths:
|
|
- "core/src/economy/sims/amm/**"
|
|
- ".github/workflows/m3c-amm.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
m3c:
|
|
name: Solidity AMM engine
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: core/src/economy/sims/amm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Foundry
|
|
uses: foundry-rs/foundry-toolchain@v1
|
|
|
|
- name: Run M3c native tests
|
|
run: forge test -vv
|
|
|
|
- name: Run M2 → M3c → Hub integration
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
tclsh integration.test | tee /tmp/m3c-integration.out
|
|
grep -Eq 'Total[[:space:]]+4[[:space:]]+Passed[[:space:]]+4.*Failed[[:space:]]+0' /tmp/m3c-integration.out
|