name: CI on: push: branches: - main pull_request: jobs: go-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: "1.22" cache: true - name: Run Go tests run: go test ./... frontend-build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "20" cache: npm cache-dependency-path: frontend/package-lock.json - name: Install frontend dependencies working-directory: frontend run: npm ci - name: Build frontend working-directory: frontend run: npm run build docker-build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Build container image run: docker build -t llm-intelligence:ci .