From a0669e1e3223b8f2b2e01e6c33bdcd2e4be625dd Mon Sep 17 00:00:00 2001
From: bjdgyc <bjdgyc@163.com>
Date: Mon, 1 Mar 2021 16:19:35 +0800
Subject: [PATCH] Update go.yml

---
 .github/workflows/go.yml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 5b15db9..402d988 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -21,24 +21,24 @@ jobs:
 
       - name: Check out code into the Go module directory
         uses: actions/checkout@v2
-        
-      - name: Switch path
-        run: |
-          cd server
-          ls
 
       - name: Get dependencies
         run: |
-          ls
+          cd server
           go get -v -t -d ./...
 
       - name: Build
         run: |
+          cd server
           go build -v -o anylink -ldflags "-X main.COMMIT_ID=`git rev-parse HEAD`"
           ./anylink -rev
 
       - name: Test coverage
-        run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
+        run: |
+          cd server
+          go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
 
       - name: Upload coverage to Codecov
-        run: bash <(curl -s https://codecov.io/bash)
+        run: |
+          cd server
+          bash <(curl -s https://codecov.io/bash)