feat: add schema field constraints #82
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| - name: UI dependencies | |
| run: | | |
| cd ui | |
| npm ci | |
| - name: Production dependency audit | |
| run: | | |
| cd ui | |
| npm audit --omit=dev --audit-level=high | |
| - name: UI Lint | |
| run: | | |
| cd ui | |
| npm run lint | |
| - name: UI Build | |
| run: | | |
| cd ui | |
| npm run build | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24.4" | |
| - name: Go Mod Tidy | |
| run: go mod tidy | |
| - name: Go Lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| version: v2.1 | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build Docker Image | |
| run: docker build . |