From c02a294ede00975a2647fccfb7e3a6a7462dd33b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 4 Oct 2023 18:31:42 +0200 Subject: [PATCH] CI: Test all packages Signed-off-by: Knut Ahlers --- .github/workflows/test-and-build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 27f4d2a..a50fcdb 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -50,9 +50,19 @@ jobs: - name: Marking workdir safe run: git config --global --add safe.directory /__w/ots/ots - - name: Lint and test code + - name: 'Lint and test code: API' run: | - go test -v ./... + go test -cover -v ./... + + - name: 'Lint and test code: Client' + working-directory: ./pkg/client + run: | + go test -cover -v ./... + + - name: 'Lint and test code: OTS-CLI' + working-directory: ./cmd/ots-cli + run: | + go test -cover -v ./... - name: Generate (and validate) translations run: make translate