Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashish committed Oct 20, 2023
1 parent 2f83b38 commit 645fea8
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ jobs:
name: SonarCloud
runs-on: ubuntu-latest
env:
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@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -23,7 +24,8 @@ jobs:
with:
go-version: ${{ matrix.go }}

- uses: actions/checkout@v4
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
path: ${{ env.WORKDIR }}

Expand All @@ -32,17 +34,6 @@ jobs:
with:
version: v1.54

- name: Debug
run: |
pwd
echo ${HOME}
echo ${GITHUB_WORKSPACE}
ls -la ${GITHUB_WORKSPACE}
# echo ${GOPATH}
# echo ${GOROOT}
echo ${{github.workspace}}
echo src/github.com/${{github.repository}}
- name: Build
working-directory: ${{ env.WORKDIR }}
run: .github/scripts/setup.sh
Expand All @@ -52,17 +43,10 @@ jobs:
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: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
args: >
-Dsonar.organization=omise
-Dsonar.projectKey=omise_omise-go

0 comments on commit 645fea8

Please sign in to comment.