Skip to content

Commit

Permalink
chore: Modify tparse check
Browse files Browse the repository at this point in the history
  • Loading branch information
moduli committed Jan 8, 2025
1 parent dce3365 commit 35b032b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test-race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 if 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
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 if 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
Expand Down

0 comments on commit 35b032b

Please sign in to comment.