-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(knowledge): extract generic CUE compiler core and projection… #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
faaba01
5219ad1
1c22269
73285eb
d946b63
3149780
97e6fde
7ca9dd2
16172a0
88d6093
bacd953
84f1a1c
a4e2502
8e4a563
47bd8ba
4d62048
64939c0
278c536
53af16b
a1a7ef7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,56 @@ | ||||||||||||||||
| name: backend-ci | ||||||||||||||||
|
|
||||||||||||||||
| # cue/** and examples/** are included because backend tests pin the embedded | ||||||||||||||||
| # schema and demo assets byte-for-byte to those directories. | ||||||||||||||||
| on: | ||||||||||||||||
| push: | ||||||||||||||||
| branches: [main] | ||||||||||||||||
| paths: | ||||||||||||||||
| - backend/** | ||||||||||||||||
| - cue/** | ||||||||||||||||
| - examples/** | ||||||||||||||||
| - .github/workflows/backend-ci.yml | ||||||||||||||||
| pull_request: | ||||||||||||||||
| paths: | ||||||||||||||||
| - backend/** | ||||||||||||||||
| - cue/** | ||||||||||||||||
| - examples/** | ||||||||||||||||
| - .github/workflows/backend-ci.yml | ||||||||||||||||
|
|
||||||||||||||||
| jobs: | ||||||||||||||||
| test: | ||||||||||||||||
|
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. security (P3): No explicit Suggested change
Suggested change
Prompt for AI agents |
||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
|
mendral-app[bot] marked this conversation as resolved.
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. security (P3): Adding an explicit Suggested change
Suggested change
Prompt for AI agents |
||||||||||||||||
| defaults: | ||||||||||||||||
| run: | ||||||||||||||||
| working-directory: backend | ||||||||||||||||
| steps: | ||||||||||||||||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||||||||||||||||
|
|
||||||||||||||||
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | ||||||||||||||||
| with: | ||||||||||||||||
| go-version-file: backend/go.mod | ||||||||||||||||
| cache-dependency-path: backend/go.sum | ||||||||||||||||
|
|
||||||||||||||||
| - name: gofmt check | ||||||||||||||||
| run: | | ||||||||||||||||
| unformatted="$(gofmt -l .)" | ||||||||||||||||
| if [ -n "$unformatted" ]; then | ||||||||||||||||
| echo "gofmt needed on:" | ||||||||||||||||
| echo "$unformatted" | ||||||||||||||||
| exit 1 | ||||||||||||||||
| fi | ||||||||||||||||
|
|
||||||||||||||||
| - name: build | ||||||||||||||||
| run: go build ./... | ||||||||||||||||
|
|
||||||||||||||||
| - name: install gotestsum | ||||||||||||||||
| run: go install gotest.tools/gotestsum@v1.13.0 | ||||||||||||||||
|
|
||||||||||||||||
| - name: test | ||||||||||||||||
| run: gotestsum --junitfile junit.xml --format testname -- ./... | ||||||||||||||||
|
|
||||||||||||||||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||||||||||||||||
| if: always() | ||||||||||||||||
| with: | ||||||||||||||||
| name: junit | ||||||||||||||||
| path: backend/junit.xml | ||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,58 @@ | ||||||||||||||||
| name: binaries | ||||||||||||||||
|
|
||||||||||||||||
| # Self-contained cueto binaries: the web UI is built once with an empty | ||||||||||||||||
| # VITE_API_URL (same-origin), copied over the placeholder embed dir, and the CLI | ||||||||||||||||
| # is cross-compiled for each release target. Pure-Go dependencies make | ||||||||||||||||
| # CGO_ENABLED=0 cross-compilation from one runner safe; backend tests verified | ||||||||||||||||
| # separately in backend-ci. | ||||||||||||||||
|
|
||||||||||||||||
| on: | ||||||||||||||||
| push: | ||||||||||||||||
| branches: [main] | ||||||||||||||||
| tags: ["v*"] | ||||||||||||||||
| pull_request: | ||||||||||||||||
| paths: | ||||||||||||||||
| - backend/** | ||||||||||||||||
| - frontend/** | ||||||||||||||||
| - .github/workflows/binaries.yml | ||||||||||||||||
| workflow_dispatch: | ||||||||||||||||
|
|
||||||||||||||||
| jobs: | ||||||||||||||||
| build: | ||||||||||||||||
|
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. security (P3): No explicit Suggested change
Suggested change
Prompt for AI agents |
||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
| steps: | ||||||||||||||||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||||||||||||||||
|
|
||||||||||||||||
| - name: install pnpm | ||||||||||||||||
| run: npm install -g pnpm@11 | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maintainability (P3): pnpm is installed with a floating major-version tag ( Suggested change
Suggested change
Prompt for AI agents |
||||||||||||||||
|
|
||||||||||||||||
| - name: build web UI (same-origin API) | ||||||||||||||||
| working-directory: frontend | ||||||||||||||||
| run: | | ||||||||||||||||
| pnpm install --frozen-lockfile | ||||||||||||||||
| pnpm run build | ||||||||||||||||
|
|
||||||||||||||||
| - name: embed web UI | ||||||||||||||||
| run: | | ||||||||||||||||
| rm -rf backend/internal/assets/webui | ||||||||||||||||
| cp -R frontend/dist backend/internal/assets/webui | ||||||||||||||||
|
|
||||||||||||||||
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | ||||||||||||||||
| with: | ||||||||||||||||
| go-version-file: backend/go.mod | ||||||||||||||||
| cache-dependency-path: backend/go.sum | ||||||||||||||||
|
|
||||||||||||||||
| - name: build binaries | ||||||||||||||||
| working-directory: backend | ||||||||||||||||
| env: | ||||||||||||||||
| CGO_ENABLED: "0" | ||||||||||||||||
| run: | | ||||||||||||||||
| mkdir -p dist | ||||||||||||||||
| GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o dist/cueto-linux-amd64 ./cmd/cueto | ||||||||||||||||
| GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="-s -w" -o dist/cueto-linux-arm64 ./cmd/cueto | ||||||||||||||||
| GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags="-s -w" -o dist/cueto-darwin-arm64 ./cmd/cueto | ||||||||||||||||
|
|
||||||||||||||||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||||||||||||||||
| with: | ||||||||||||||||
| name: cueto-binaries | ||||||||||||||||
| path: backend/dist/cueto-* | ||||||||||||||||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.