From b2e402b834e1c3ebe80ce4a8b978e0374d3ea7e8 Mon Sep 17 00:00:00 2001 From: JulioMCruz Date: Fri, 26 Jun 2026 13:44:07 -0400 Subject: [PATCH] =?UTF-8?q?ci:=20GitHub=20Actions=20=E2=80=94=20cargo=20te?= =?UTF-8?q?st=20-p=20pool=20+=20app=20vitest/build=20on=20PR=20&=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..819365f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +# Fast, deterministic checks on every PR and on main. The slow testnet integration +# scripts (pool/scripts/*.mjs) are run manually, not here. +on: + push: + branches: [main] + pull_request: + +jobs: + contracts: + name: contracts · cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + workspaces: contracts + - name: cargo test -p pool + working-directory: contracts + run: cargo test -p pool + + app: + name: app · vitest + build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: app/package-lock.json + - name: install + working-directory: app + run: npm ci + - name: vitest + working-directory: app + run: npm test + - name: next build + working-directory: app + run: npm run build