feat(docs): enhance llms.txt with overview, data models, short flags, and defaults #83
Workflow file for this run
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: Testing CLI | |
| on: | |
| push: | |
| branches: ["v4.x"] | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Run gofmt | |
| run: diff -u <(echo -n) <(gofmt -d -s .) | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: v2.5.0 # pin version for consistency | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Run tests | |
| run: go test -v -race -cover ./... | |
| llms-txt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Regenerate llms.txt | |
| run: go run ./coolify docs llms | |
| - name: Check uncommitted changes | |
| run: git diff --exit-code llms.txt | |
| - if: failure() | |
| run: echo "::error::llms.txt is out of date. Run 'go run ./coolify docs llms' and commit the changes." | |
| go-mod-tidy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Run go mod tidy | |
| run: go mod tidy | |
| - name: Check uncommitted changes | |
| run: git diff --exit-code | |
| - if: failure() | |
| run: echo "::error::Check failed, please run 'go mod tidy' and commit the changes." |