From 4d3d4365a31ca5ceb599bc8ebb2e03b7a5e24baa Mon Sep 17 00:00:00 2001 From: Granty1 Date: Thu, 9 Apr 2020 12:36:57 +0800 Subject: [PATCH] Add working-directory tag --- .github/workflows/go.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 09c00090..731c4e74 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,14 +19,20 @@ jobs: - name: Get dependencies run: | - cd server go get -v -t -d ./... if [ -f Gopkg.toml ]; then curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh dep ensure fi + working-directory: ./server - name: Build run: | - go build -v . + go build -v . + working-directory: ./server + + - name: Run + run: | + nohup ./gin-vue-admin & + working-directory: ./server -- GitLab