name: Stream Server CI

on:
  push:
    paths:
      - "apps/stream-server/**"
      - ".github/workflows/stream-ci.yml"
  pull_request:
    paths:
      - "apps/stream-server/**"
      - ".github/workflows/stream-ci.yml"

jobs:
  test:
    runs-on: ubuntu-latest

    defaults:
      run:
        working-directory: apps/stream-server

    steps:
      - uses: actions/checkout@v4

      - name: Set up Rust
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          override: true

      - name: Run tests
        run: cargo test --all

