From 3d489fb75bcf4b95b3c29ce724a7a5b16f8a9f9f Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Wed, 26 Nov 2025 12:18:01 -0800 Subject: [PATCH] Add unit test job This code has unit tests, so let's run them. Includes a fix for a unit test that hadn't been updated with 702db8b4. Signed-off-by: Colleen Murphy --- .github/workflows/verify.yml | 17 +++++++++++++++++ pkg/repo/repo_test.go | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index bb3822077..abda51d30 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -59,3 +59,20 @@ jobs: uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0 with: version: v2.4 + + unit-test: + name: run unit tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + + - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 + with: + go-version-file: 'go.mod' + check-latest: true + + - name: run unit tests + run: | + go test $(go list ./... | grep -v third_party/) diff --git a/pkg/repo/repo_test.go b/pkg/repo/repo_test.go index 043ee297c..5451608ea 100644 --- a/pkg/repo/repo_test.go +++ b/pkg/repo/repo_test.go @@ -116,7 +116,7 @@ U0Vwjeco6zyeh0zBTs9/7gV6AHNQ53xD } }, "logId": { - "keyId": "xBzny6gmou42sCYrHOzNuGqi1s2cMxcCEq1wrKF9XDs=" + "keyId": "jOSymJW6Ywhw2zAfvchs+4jsOS+Iux5cOrxTfO+HMCA=" } } ], @@ -150,7 +150,7 @@ U0Vwjeco6zyeh0zBTs9/7gV6AHNQ53xD } }, "logId": { - "keyId": "G3CTL21UG8/5ygV+/WVy/pvB8nUiZGOEnMVKIEDzPxY=" + "keyId": "8yGn++p+BUgM0YDLv+NiivfcC2kmMJAVpAm/UtCDn/Y=" } } ],