From 454935a44535336ab272e8d54c7a3e8798a91ee9 Mon Sep 17 00:00:00 2001 From: Aashish Date: Fri, 20 Oct 2023 12:14:09 +0700 Subject: [PATCH] Still debugging --- .github/workflows/code-coverage.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index adb8076..c8a3f5b 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -7,8 +7,8 @@ jobs: sonarcloud: name: SonarCloud runs-on: ubuntu-latest - # env: - # WORKDIR: src/github.com/${{ github.repository }} + env: + WORKDIR: src/github.com/${{ github.repository }} strategy: matrix: @@ -23,36 +23,30 @@ jobs: with: go-version: ${{ matrix.go }} cache: false - # - name: Check out code into the Go module directory - # uses: actions/checkout@v3 - # with: - # path: ${{ env.WORKDIR }} - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: v1.54 - # working-directory: ${{ env.WORKDIR }} + working-directory: ${{ env.WORKDIR }} - name: Debug run: | pwd echo ${HOME} echo ${GITHUB_WORKSPACE} - echo ls -la ${GITHUB_WORKSPACE} + ls -la ${GITHUB_WORKSPACE} # echo ${GOPATH} # echo ${GOROOT} echo ${{github.workspace}} echo src/github.com/${{github.repository}} - echo ls -la src/github.com/${{github.repository}} - + ls -la src/github.com/${{github.repository}} - name: Build - # working-directory: ${{ env.WORKDIR }} run: .github/scripts/setup.sh - name: Generate coverage - # working-directory: ${{ env.WORKDIR }} + working-directory: ${{ env.WORKDIR }} env: OMISE_PKEY: pkey_test_xxx OMISE_SKEY: skey_test_xxx @@ -60,6 +54,11 @@ jobs: # with error: Command failed: go env GOPATH $GOPATH/go.mod exists but should not GOPATH: ${{ github.workspace }} run: .github/scripts/code-coverage.sh + + # - name: Check out code into the Go module directory + # uses: actions/checkout@v3 + # with: + # path: ${{ env.WORKDIR }} - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: