Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Feb 26, 2025
1 parent 930fc68 commit 7a6826a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@ jobs:
- name: Copy test database files
run: mkdir -p /tmp/sqlite && cp testdata/sqlite/G2C.db /tmp/sqlite/

- name: Run go test without SENZING_PATH environment variable
run: |
export DYLD_LIBRARY_PATH="${HOME}/senzing/er/lib:${HOME}/senzing/er/lib/macos"
export LD_LIBRARY_PATH="${HOME}/senzing/er/lib:${HOME}/senzing/er/lib/macos"
go test -exec "${GITHUB_WORKSPACE}/bin/macos_exec_dyld.sh" -json -v -p 1 ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run go test with SENZING_PATH environment variable
- name: Run go test
run: |
export SENZING_PATH="${HOME}/senzing"
export DYLD_LIBRARY_PATH="${SENZING_PATH}/er/lib:${SENZING_PATH}/er/lib/macos"
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ jobs:
- name: Copy test database files
run: mkdir -p /tmp/sqlite && cp testdata/sqlite/G2C.db /tmp/sqlite/

- name: Run go test without SENZING_PATH environment variable
run: |
export LD_LIBRARY_PATH="/opt/senzing/er/lib:${HOME}/senzing/er/lib/macos"
go test -json -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run go test with SENZING_PATH environment variable
- name: Run go test
run: |
export SENZING_PATH="/opt/senzing"
export LD_LIBRARY_PATH="${SENZING_PATH}/er/lib:${SENZING_PATH}/er/lib/macos"
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,15 @@ jobs:
senzingsdk-repository-path: ${{ secrets.SENZING_WIN_BETA_REPOSITORY }}

- name: Add to "Path" environment variable
run: |
# shellcheck disable=SC2028
echo "$Env:USERPROFILE\Senzing\er\lib" >> "$env:GITHUB_PATH"
run: Add-Content "$env:GITHUB_PATH" "$Env:USERPROFILE\Senzing\er\lib"

- name: Copy /etc files
run: copy testdata/senzing-license/g2.lic "$Env:USERPROFILE\Senzing\er\etc\g2.lic"

- name: Copy test database files
run: mkdir "C:\Temp\sqlite" && copy testdata/sqlite/G2C.db "C:\Temp\sqlite\G2C.db"

- name: Run go test without SENZING_PATH environment variable set
run: go test -json -v -p 1 ./... 2>&1 | tee "C:\Temp\gotest.log" | gotestfmt

- name: Set environment variable
run: |
# shellcheck disable=SC2086
echo "SENZING_PATH=$env:USERPROFILE\Senzing" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Run go test with SENZING_PATH environment variable set
- name: Run go test
run: |
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 7a6826a

Please sign in to comment.