Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
Loading