From 6f043698d15fab95966a19e9f926468fecadf7d9 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 27 Jun 2024 17:16:12 +0200 Subject: [PATCH] ci: add e2e-build-test for compiling the e2e testsuite When Go modules get updated, golangci-lint sometimes fails with weird errors. One of the common causes seems to be that there is a dependency breakage between modules that are only used within the e2e test suite. A normal build of the cephcsi executable succeeds, but building ./e2e would fail. By adding a job to build the e2e.test executable, a clear error message will be reported when there are package dependency conflicts. Signed-off-by: Niels de Vos --- .github/workflows/go-test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index 7fe478c56..e0c6975ee 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -9,6 +9,13 @@ permissions: contents: read jobs: + e2e-build-test: + name: e2e-build-test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: e2e-build-test + run: make containerized-build TARGET=e2e.test go-test: name: go-test runs-on: ubuntu-latest