From 1bd8f007350b519bd9104adec110b330a50a33bb Mon Sep 17 00:00:00 2001 From: Aashish Date: Thu, 19 Oct 2023 18:07:16 +0700 Subject: [PATCH] Adding debug job to Github workflow --- .github/workflows/code-coverage.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 3fdccb2..deaf4d6 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -8,26 +8,32 @@ jobs: name: SonarCloud runs-on: ubuntu-latest env: - GOPATH: ${{ github.workspace }} + # GOPATH: ${{ github.workspace }} WORKDIR: src/github.com/${{ github.repository }} strategy: matrix: go: [ '1.21', '1.20', '1.19', '1.18', '1.17' ] steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: + fetch-depth: 0 path: ${{ env.WORKDIR }} + - name: Debug + run: | + pwd + echo ${HOME} + echo ${GITHUB_WORKSPACE} + echo ${GOPATH} + echo ${GOROOT} + echo ${github.workspace} + echo src/github.com/${github.repository} - name: Build working-directory: ${{ env.WORKDIR }}