From 778c54b91798782086eef3966f34504343188182 Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Wed, 10 Apr 2024 00:00:14 -0500 Subject: [PATCH 1/3] gha: run code coverage on rpk --- .github/workflows/rpk-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rpk-build.yml b/.github/workflows/rpk-build.yml index 5347245cf85df..e082259a2380a 100644 --- a/.github/workflows/rpk-build.yml +++ b/.github/workflows/rpk-build.yml @@ -38,4 +38,4 @@ jobs: - name: Run tests working-directory: src/go/rpk/ - run: go test -v ./... + run: go run gotest.tools/gotestsum@v1.11.0 -- -cover ./... From 81bda6f19916d8b4bb520966aa8b5283744aa3bb Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Wed, 10 Apr 2024 00:06:11 -0500 Subject: [PATCH 2/3] gha: cache dep path for rpk --- .github/workflows/rpk-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/rpk-build.yml b/.github/workflows/rpk-build.yml index e082259a2380a..556534ae501d2 100644 --- a/.github/workflows/rpk-build.yml +++ b/.github/workflows/rpk-build.yml @@ -35,6 +35,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: stable + cache-dependency-path: 'src/go/rpk/go.sum' - name: Run tests working-directory: src/go/rpk/ From 53c7068dd433dae0866d2ce539afb73edb40378b Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Wed, 10 Apr 2024 00:09:34 -0500 Subject: [PATCH 3/3] gha: trigger rpk-build.yml when it is changed --- .github/workflows/rpk-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rpk-build.yml b/.github/workflows/rpk-build.yml index 556534ae501d2..9e50e4b123d35 100644 --- a/.github/workflows/rpk-build.yml +++ b/.github/workflows/rpk-build.yml @@ -14,9 +14,11 @@ on: - 'dev' paths: - 'src/go/rpk/**' + - '.github/workflows/rpk-build.yml' pull_request: paths: - 'src/go/rpk/**' + - '.github/workflows/rpk-build.yml' jobs: test: