45 lines
971 B
YAML
45 lines
971 B
YAML
name: Taxonomy Sidecar
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- codex/**
|
|
|
|
concurrency:
|
|
group: taxonomy-sidecar-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
taxonomy-sidecar:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: "1.3.5"
|
|
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Typecheck
|
|
run: bun x tsc --noEmit
|
|
|
|
- name: Rust unit tests
|
|
run: cargo test --manifest-path rust/Cargo.toml -p fiscal-xbrl-core
|
|
|
|
- name: Taxonomy tests
|
|
run: bun test lib/server/taxonomy/engine.test.ts lib/server/financial-taxonomy.test.ts
|
|
|
|
- name: Build Rust sidecar
|
|
run: cargo build --manifest-path rust/Cargo.toml -p fiscal-xbrl-cli
|