Skip to content

Commit cb48a63

Browse files
authored
Add unit test job (#1823)
This code has unit tests, so let's run them. Includes a fix for a unit test that hadn't been updated with 702db8b. Signed-off-by: Colleen Murphy <[email protected]>
1 parent a372765 commit cb48a63

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/verify.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,20 @@ jobs:
5959
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
6060
with:
6161
version: v2.4
62+
63+
unit-test:
64+
name: run unit tests
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
68+
with:
69+
persist-credentials: false
70+
71+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
72+
with:
73+
go-version-file: 'go.mod'
74+
check-latest: true
75+
76+
- name: run unit tests
77+
run: |
78+
go test $(go list ./... | grep -v third_party/)

pkg/repo/repo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ U0Vwjeco6zyeh0zBTs9/7gV6AHNQ53xD
116116
}
117117
},
118118
"logId": {
119-
"keyId": "xBzny6gmou42sCYrHOzNuGqi1s2cMxcCEq1wrKF9XDs="
119+
"keyId": "jOSymJW6Ywhw2zAfvchs+4jsOS+Iux5cOrxTfO+HMCA="
120120
}
121121
}
122122
],
@@ -150,7 +150,7 @@ U0Vwjeco6zyeh0zBTs9/7gV6AHNQ53xD
150150
}
151151
},
152152
"logId": {
153-
"keyId": "G3CTL21UG8/5ygV+/WVy/pvB8nUiZGOEnMVKIEDzPxY="
153+
"keyId": "8yGn++p+BUgM0YDLv+NiivfcC2kmMJAVpAm/UtCDn/Y="
154154
}
155155
}
156156
],

0 commit comments

Comments
 (0)