name: build-and-test
on:
  push:
    branches: ["main"]
  pull_request:
jobs:
  api:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: "18" }
      - name: Install
        run: |
          cd app/api && npm ci
      - name: Test (smoke)
        run: |
          node -e "console.log('ok')"
      - name: Build Docker
        run: |
          docker build -t exo-api:ci ./app/api
