diff --git a/.github/workflows/docker-build-push.yaml b/.github/workflows/docker-build-push.yaml index 5ed8409..509d3ff 100644 --- a/.github/workflows/docker-build-push.yaml +++ b/.github/workflows/docker-build-push.yaml @@ -34,10 +34,13 @@ jobs: go-version-file: 'go.mod' cache: true + - name: Install envtest binaries + run: | + make setup-envtest + - name: Run tests run: | - go test -v ./... -coverprofile=coverage.out - go tool cover -func=coverage.out + make test - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/pr-validation.yaml b/.github/workflows/pr-validation.yaml index 1344ad2..7a327f4 100644 --- a/.github/workflows/pr-validation.yaml +++ b/.github/workflows/pr-validation.yaml @@ -30,8 +30,11 @@ jobs: - name: Run go vet run: go vet ./... + - name: Install envtest binaries + run: make setup-envtest + - name: Run tests - run: go test -v -race -coverprofile=coverage.out ./... + run: make test - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1fcf020..6a72080 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,9 +31,13 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: 'go.mod' + cache: true + + - name: Install envtest binaries + run: make setup-envtest - name: Run tests - run: go test -v ./... + run: make test - name: Set up QEMU uses: docker/setup-qemu-action@v3