File tree 3 files changed +4
-71
lines changed
3 files changed +4
-71
lines changed Original file line number Diff line number Diff line change 21
21
# Required by: internal/utils/credentials/keyring_test.go
22
22
- uses : t1m0thyj/unlock-keyring@v1
23
23
- run : |
24
- go run gotest.tools/gotestsum -- -race -v -count=1 -coverprofile=coverage.out \
25
- `go list ./... | grep -Ev 'cmd|docs|examples|pkg/api|tools'`
24
+ pkgs=$(go list ./pkg/... | grep -Ev 'pkg/api' | paste -sd ',' -)
25
+ go run gotest.tools/gotestsum -- -race -v -count=1 ./... \
26
+ -coverpkg="./cmd/...,./internal/...,${pkgs}" -coverprofile=coverage.out
26
27
27
28
- uses : coverallsapp/github-action@v2
28
29
with :
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func TestLogoutCommand(t *testing.T) {
34
34
})
35
35
36
36
t .Run ("removes all Supabase CLI credentials" , func (t * testing.T ) {
37
- t . Cleanup ( credentials . MockInit () )
37
+ keyring . MockInit ()
38
38
require .NoError (t , credentials .StoreProvider .Set (utils .AccessTokenKey , token ))
39
39
require .NoError (t , credentials .StoreProvider .Set ("project1" , "password1" ))
40
40
require .NoError (t , credentials .StoreProvider .Set ("project2" , "password2" ))
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments