Skip to content
Draft
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
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.git
.github
.idea
.vscode
target
**/node_modules
**/.svelte-kit
**/.venv
**/.pytest_cache
**/__pycache__
**/*.db
**/*.db-shm
**/*.db-wal
deployments/ground-station/db/data
apps/tile-provider/tiles_data
102 changes: 102 additions & 0 deletions .github/workflows/ground-station.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Ground Station

on:
push:
branches: [main]
paths:
- "apps/antenna-tracker/**"
- "apps/command-dispatcher/**"
- "apps/ground-station-web/**"
- "apps/sergw/**"
- "apps/telemetry-ingestor/**"
- "apps/tile-provider/**"
- "deployments/ground-station/**"
- "tools/ground-station/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/ground-station.yml"
pull_request:
paths:
- "apps/antenna-tracker/**"
- "apps/command-dispatcher/**"
- "apps/ground-station-web/**"
- "apps/sergw/**"
- "apps/telemetry-ingestor/**"
- "apps/tile-provider/**"
- "deployments/ground-station/**"
- "tools/ground-station/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/ground-station.yml"

jobs:
rust-host:
name: Rust host applications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rustfmt
- name: Install native dependencies
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config
- name: Check formatting
run: cargo fmt --all -- --check
- name: Lint ground-station crates
run: cargo clippy --locked -p sergw -p command-dispatcher -p telemetry-ingestor -p gps-ingest -p manual-command-dispatcher -p virtual-serial --all-targets -- -D warnings
- name: Test ground-station crates
run: cargo test --locked -p sergw -p command-dispatcher -p telemetry-ingestor -p gps-ingest -p manual-command-dispatcher -p virtual-serial

web:
name: Ground-station web
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/ground-station-web
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
- run: bun install --frozen-lockfile
- run: bun run check
- run: bun run test
- run: bun run build

bun-services:
name: Bun tests (${{ matrix.app }})
runs-on: ubuntu-latest
strategy:
matrix:
app:
- apps/tile-provider
- deployments/ground-station/db
defaults:
run:
working-directory: ${{ matrix.app }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
- run: bun install --frozen-lockfile
- run: bun test

antenna-python:
name: Antenna Python
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/antenna-tracker
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv run --frozen pytest -q

compose:
name: Compose configuration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker compose -f deployments/ground-station/compose.yaml config --quiet
- run: docker compose -f deployments/ground-station/compose.yaml --profile radio config --quiet
17 changes: 16 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/target
.DS_Store
.uv-cache
.uv-cache

# Host application dependencies and build output
node_modules/
.svelte-kit/
.venv/
.pytest_cache/
__pycache__/
*.py[cod]

# Runtime data
*.db
*.db-shm
*.db-wal
deployments/ground-station/db/data/
apps/tile-provider/tiles_data/
8 changes: 6 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"recommendations": [
"dustypomerleau.rust-syntax",
"1yib.rust-bundle",
"polymeilex.rust-targets"
"polymeilex.rust-targets",
"svelte.svelte-vscode",
"oven.bun-vscode",
"ms-python.python",
"charliermarsh.ruff"
]
}
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
"chrono",
"defmt",
"heapless",
"libsql",
"mavlink",
"ratatui",
"serde",
"sergw",
"SvelteKit",
"uorocketry"
]
}
}
Loading
Loading