-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #55 Update dependencies * #55 Update test cases * #55 Update test cases * #55 Improve documentation * #55 Improve documentation * #55 Improve documentation * #55 Improve documentation * #55 Update dependencies * #55 change initdatabase to servegrpc * #55 Update dependencies * #55 Update dependencies * #55 Update dependencies * #55 Update dependencies * #55 Update dependencies * #55 Add go-test.yaml * #55 Add go-test.yaml * #55 Prepare for versioned release
- Loading branch information
Showing
12 changed files
with
229 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Based on | ||
# -https://github.com/marketplace/actions/setup-go-environment | ||
|
||
name: go-test.yaml | ||
|
||
on: [push] | ||
|
||
env: | ||
LD_LIBRARY_PATH: /opt/senzing/g2/lib | ||
SENZING_ACCEPT_EULA: I_ACCEPT_THE_SENZING_EULA | ||
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: ["1.20"] | ||
name: Go ${{ matrix.go }} sample | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- run: pwd | ||
- run: wget -qO /tmp/senzingrepo_1.0.1-1_amd64.deb https://senzing-production-apt.s3.amazonaws.com/senzingrepo_1.0.1-1_amd64.deb | ||
- run: sudo apt-get -y install /tmp/senzingrepo_1.0.1-1_amd64.deb | ||
- run: sudo apt-get update | ||
- run: sudo --preserve-env apt-get -y install senzingapi | ||
- run: sudo mv /opt/senzing/data/3.0.0/* /opt/senzing/data/ | ||
- run: sudo mkdir /etc/opt/senzing | ||
- run: sudo cp /opt/senzing/g2/resources/templates/cfgVariant.json /etc/opt/senzing | ||
- run: sudo cp /opt/senzing/g2/resources/templates/customGn.txt /etc/opt/senzing | ||
- run: sudo cp /opt/senzing/g2/resources/templates/customOn.txt /etc/opt/senzing | ||
- run: sudo cp /opt/senzing/g2/resources/templates/customSn.txt /etc/opt/senzing | ||
- run: sudo cp /opt/senzing/g2/resources/templates/defaultGNRCP.config /etc/opt/senzing | ||
- run: sudo cp /opt/senzing/g2/resources/templates/stb.config /etc/opt/senzing | ||
- run: sudo cp testdata/senzing-license/g2.lic /etc/opt/senzing | ||
- run: mkdir /tmp/sqlite | ||
- run: cp testdata/sqlite/G2C.db /tmp/sqlite/G2C.db | ||
- run: go test -v -p 1 ./... | ||
# - run: go test -v ./. | ||
# - run: go test -v ./g2configserver | ||
# - run: go test -v ./g2configmgrserver | ||
# - run: go test -v ./g2diagnosticserver | ||
# - run: go test -v ./g2engineserver | ||
# - run: go test -v ./g2productserver | ||
# - run: go test -v ./grpcserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.