name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: '20' }
      - run: cd app/api && npm ci && npm test && npm run build || true
      - run: docker build -t exosysteme-api:ci app/api
