Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .agents/skills/monitor-ci/scripts/ci-poll-decide.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ try {
message: 'Failed to parse ci_information JSON',
noProgressCount: inputNoProgressCount + 1,
envRerunCount,
})
}),
);
process.exit(0);
}
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/nx-import/references/ESLINT.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ When a project uses `eslint.config.cjs` (CJS flat config), `eslint .` lints the
module.exports = tseslint.config(
{
ignores: ['dist/**', 'node_modules/**', 'eslint.config.cjs'],
}
},
// ...
);
```
Expand Down
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
81 changes: 81 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: CI

on:
push:
branches:
- master
pull_request:

permissions:
contents: read

jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
outputs:
rust: ${{ steps.filter.outputs.rust }}
typescript: ${{ steps.filter.outputs.typescript }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3.0.3
id: filter
with:
filters: |
rust:
- 'packages/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/ci.yml'
typescript:
- 'libs/**'
- 'infra/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig*.json'
- 'nx.json'
- '.github/workflows/ci.yml'

typescript:
name: TypeScript (lint, build, typecheck)
needs: changes
if: |
needs.changes.outputs.typescript == 'true' ||
(github.event_name == 'push' && github.ref == 'refs/heads/master')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- run: npm ci
- run: npx nx format:check --all
- run: npx nx run-many -t lint build typecheck

rust:
name: Rust (fmt, clippy, test)
needs: changes
if: |
needs.changes.outputs.rust == 'true' ||
(github.event_name == 'push' && github.ref == 'refs/heads/master')
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v2

- run: cargo fmt --all -- --check
- run: cargo check --workspace
- run: cargo clippy -p extractors-core -p phoenix-extractor -p soroswap-extractor -p aquarius-extractor -p ledger-processor -- -D warnings
- run: cargo test --workspace
42 changes: 0 additions & 42 deletions .github/workflows/rust.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
npx lint-staged && npm run -s verify:staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -e
cargo clippy -p extractors-core -p phoenix-extractor -p soroswap-extractor -p aquarius-extractor -p ledger-processor --all-targets -- -D warnings
npm run -s verify:push
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Add files here to ignore them from prettier formatting
dist
coverage
target
Cargo.lock
packages/
.nx
board.html
AGENTS.md
CLAUDE.md

# JSONL evidence files (multi-object, not valid JSON)
lore/**/evidence/*.json
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ services:
clickhouse:
image: clickhouse/clickhouse-server:25.6
ports:
- "8123:8123"
- "9000:9000"
- '8123:8123'
- '9000:9000'
volumes:
- clickhouse-data:/var/lib/clickhouse
- ./packages/sdex-backfill/schema/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
Expand All @@ -12,7 +12,7 @@ services:
CLICKHOUSE_USER: default
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
healthcheck:
test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
test: ['CMD', 'clickhouse-client', '--query', 'SELECT 1']
interval: 5s
timeout: 3s
retries: 10
Expand Down
Loading
Loading