Skip to content

Commit 2a31844

Browse files
committed
ci: optimize GitHub Actions Workflow Robustness
- Refactor test commands in GitHub Actions workflow to use a saved current path for better reliability Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 638abd6 commit 2a31844

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ jobs:
3232

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

0 commit comments

Comments
 (0)