Skip to content

Commit

Permalink
Debug - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Feb 26, 2025
1 parent 7afcca6 commit 223e371
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
with:
senzingsdk-repository-path: ${{ secrets.SENZING_WIN_BETA_REPOSITORY }}

- name: Dir
run: |
dir "$Env:USERPROFILE"
# - name: Dir
# run: |
# dir "$Env:USERPROFILE"

- name: Add to "Path" environment variable
run: |
Expand All @@ -55,29 +55,25 @@ jobs:
- name: Copy test database files
run: mkdir "C:\Temp\sqlite" && copy testdata/sqlite/G2C.db "C:\Temp\sqlite\G2C.db"

- name: Environment variables 1
run: env
# - name: Environment variables 1
# run: env

- name: Set environment variable
run: echo "SENZING_PATH=$env:USERPROFILE\Senzing" | Out-File -FilePath $env:GITHUB_ENV -Append
# - name:
# Set environment variable
# # shellcheck disable=SC2086
# run: echo "SENZING_PATH=$env:USERPROFILE\Senzing" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Environment variables 2
run: env
# - name: Environment variables 2
# run: env

- name: Run go test with SENZING_PATH environment variable
- name: Run go test without SENZING_PATH environment variable
run: |
# echo "xSENZING_PATH=$env:USERPROFILE\Senzing"
# echo ("ySENZING_PATH=" + $env:USERPROFILE + "\Senzing")
# echo ("SENZING_PATH=" + $env:USERPROFILE + "\Senzing") >> "$GITHUB_ENV"
# echo "SENZING_PATH=$env:USERPROFILE\Senzing" | Out-File -FilePath $env:GITHUB_ENV -Append
# env
# echo "${{ env.SENZING_PATH }}"
# echo $env:SENZING_PATH
go test -json -v -p 1 -coverprofile=cover -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "C:\Temp\gotest.log" | gotestfmt
cp cover cover.out
- name: Run go test without SENZING_PATH environment variable
- name: Run go test with SENZING_PATH environment variable
run: |
echo "SENZING_PATH=$env:USERPROFILE\Senzing" | Out-File -FilePath $env:GITHUB_ENV -Append
go test -json -v -p 1 -coverprofile=cover -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "C:\Temp\gotest.log" | gotestfmt
cp cover cover.out
Expand Down

0 comments on commit 223e371

Please sign in to comment.