Skip to content

Commit 630957c

Browse files
committed
debug cli ref
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 4bfd839 commit 630957c

1 file changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/test.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,37 @@ jobs:
4949
5050
make -C app/controlplane migration_sync
5151
52-
# Check that the generated ent code is up to date
53-
# see https://entgo.io/docs/ci/
54-
- uses: ent/contrib/ci@e38dfb6484dfbe64b8bd060fe6a219a1aa5da770 # master
55-
name: "Check all ent generated code is checked in"
56-
if: ${{ matrix.app != 'main-module' }}
57-
with:
58-
working-directory: app/${{ matrix.app }}
59-
tidy: true
60-
61-
# Debug: Show what files changed after go generate
62-
- name: "Debug: Show git diff after go generate"
52+
# Check that the generated code is up to date (manual check for CLI with debug output)
53+
- name: "Check all generated code is checked in (CLI with debug)"
6354
if: ${{ matrix.app == 'cli' }}
6455
run: |
65-
echo "=== Git status ==="
56+
echo "=== Running go generate ==="
57+
go generate ./...
58+
echo "=== Running go mod tidy ==="
59+
go mod tidy
60+
echo "=== Git status AFTER go generate ==="
6661
git status --porcelain
6762
echo "=== Git diff for cli-reference.mdx ==="
68-
git diff documentation/cli-reference.mdx || echo "No diff"
63+
git diff documentation/cli-reference.mdx | head -100 || echo "No diff"
6964
echo "=== File permissions ==="
7065
ls -l documentation/cli-reference.mdx
7166
echo "=== Git ls-files permissions ==="
7267
git ls-files -s documentation/cli-reference.mdx
68+
echo "=== HOME environment ==="
69+
echo "HOME=$HOME"
70+
echo "=== Checking for uncommitted changes ==="
71+
git diff --exit-code
7372
working-directory: app/cli
7473

74+
# Check that the generated ent code is up to date (for other apps)
75+
# see https://entgo.io/docs/ci/
76+
- uses: ent/contrib/ci@e38dfb6484dfbe64b8bd060fe6a219a1aa5da770 # master
77+
name: "Check all ent generated code is checked in"
78+
if: ${{ matrix.app != 'main-module' && matrix.app != 'cli' }}
79+
with:
80+
working-directory: app/${{ matrix.app }}
81+
tidy: true
82+
7583
# Check that the generated API code is up to date
7684
# We install the tools and run the protoc generation before checking differences
7785
- name: "Check all API generated code is checked in"

0 commit comments

Comments
 (0)