Skip to content

Commit

Permalink
Still debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashish committed Oct 20, 2023
1 parent a5fa296 commit 454935a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -23,43 +23,42 @@ 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
# moving GOPATH env here because having it in the top affected "Set up Go" step
# 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:
Expand Down

0 comments on commit 454935a

Please sign in to comment.