From c8195d18e3c402f75603cf27ee0f7ef6e6924578 Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 28 Apr 2026 15:40:49 +0100 Subject: [PATCH] fix(ci): align with flat module layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests live alongside production code at the package root after the 2026-04-28 module rename — `./tests/...` matched no packages, so the job exited 1 with "no packages to test". Switch to `./...` and drop the post-rewrite sed. Also: - Trigger on dev pushes and PRs so failures show up before main merge, not after. main-only push trigger meant CI couldn't gate the dev->main promotion. - Add `go vet` step before tests. - Run the SPOR / AX-7 / test-imports drift guards we already enforce locally — keeps drift from landing on main. Co-Authored-By: Virgil --- .github/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f1adf45..5b600c38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,9 @@ name: CI on: push: - branches: [main] + branches: [main, dev] + pull_request: + branches: [main, dev] jobs: test: @@ -14,10 +16,17 @@ jobs: with: go-version-file: go.mod + - name: Vet + run: go vet ./... + - name: Run tests with coverage + run: go test -coverprofile=coverage.out ./... + + - name: Drift guards (SPOR / AX-7 / test-imports) run: | - go test -coverprofile=coverage.out ./tests/... - sed -i 's|dappco.re/go/core/||g' coverage.out + bash tests/cli/imports/check.sh + python3 tests/cli/naming/check.py + python3 tests/cli/test_imports/check.py - name: Upload to Codecov uses: codecov/codecov-action@v5