From 344974fc028bdcf5822fb74fdbf5b2a778263325 Mon Sep 17 00:00:00 2001 From: nicodes Date: Sun, 2 Aug 2026 23:44:32 -0600 Subject: [PATCH] Run the tests before the cross-compile Neither reads the other's output: the build action cross-compiles and asks the binary for its version, and the test action formats, vets and tests the source. So the order decides one thing only -- which failure you hear about sooner -- and a vet or test failure is a more common way to break this than the cross-compile is. Nothing else changes here. setup-go already keeps a Go build cache and the run log shows it restoring, which is why this repository needs none of the cache work the mise-based ones did. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b81c7b..f8a8db1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,8 +47,8 @@ jobs: # Built first: a compile error should fail before a test suite spends # minutes reaching the same conclusion more slowly. - - name: Build - uses: ./.github/actions/build - - name: Test uses: ./.github/actions/test + + - name: Build + uses: ./.github/actions/build