Skip to content

Commit

Permalink
ci: optimize GitHub Actions Workflow Robustness
Browse files Browse the repository at this point in the history
- Refactor test commands in GitHub Actions workflow to use a saved current path for better reliability

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Feb 18, 2024
1 parent 638abd6 commit 2a31844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ jobs:

- name: Run Testing
run: |
cd example36-performance && go test -v -bench=. ./...
cd example52-ring-buffer-queue && go test -v -run=^$ -benchmem -bench . ./...
CURRENT_PATH=$(pwd)
cd ${CURRENT_PATH}/example36-performance && go test -v -bench=. ./...
cd ${CURRENT_PATH}/example52-ring-buffer-queue && go test -v -run=^$ -benchmem -bench . ./...

0 comments on commit 2a31844

Please sign in to comment.