From ac6443fef8bbe25dbfc7e63dd5a56c0299ba9ba3 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Wed, 8 Jan 2025 16:41:42 -0500 Subject: [PATCH] chore: Modify tparse check --- .github/workflows/test.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce3b1ffede..44a7c6be5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -143,11 +143,15 @@ jobs: restore-keys: | ${{ runner.os }}-go fail-on-cache-miss: false - - name: Install tools if cache restore fails - if: steps.go-cache.outputs.cache-hit != 'true' + - name: Install tools tparse doesn't exist run: | - go mod download - make tools + if command -v tparse &> /dev/null; then + echo "tparse exists" + else + echo "tparse doesn't exist" + go mod download + make tools + fi - name: Set up plugin cache id: plugin-cache uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0