name: CI on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ubuntu-latest strategy: matrix: node-version: [22] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm - run: npm ci - run: npm run typecheck - run: npm test web: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 cache: npm cache-dependency-path: web/package-lock.json - name: Install and build frontend working-directory: web run: | npm ci npm run build docker: runs-on: ubuntu-latest needs: [test, web] steps: - uses: actions/checkout@v4 - name: Build Docker image run: docker build -t cookiebridge:ci . - name: Smoke test run: | docker run -d --name cb-test -p 8080:8080 cookiebridge:ci sleep 3 curl -sf http://localhost:8080/health curl -sf http://localhost:8080/ | grep -q '