Skip to content

Commit

Permalink
#65 Install senzing in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Jun 11, 2024
1 parent fcbf684 commit 386dac5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ permissions:

jobs:
go-test-darwin:
name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["1.21"]
os: [macos-13]
senzingapi-version: [staging-v4]

steps:
- name: checkout repository
Expand All @@ -25,6 +26,11 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: install Senzing API
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-version: ${{ matrix.senzingapi-version }}

- name: run go test
run: go test -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./...

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ permissions:

jobs:
go-test-linux:
name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["1.21"]
os: [ubuntu-latest]
senzingapi-version: [staging-v4]

steps:
- name: checkout repository
Expand All @@ -25,6 +26,11 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: install Senzing API
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-runtime-version: ${{ matrix.senzingapi-version }}

- name: run go test
run: go test -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./...

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ permissions:

jobs:
go-test-windows:
name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["1.21"]
os: [windows-latest]
senzingapi-version: [staging-v4]

steps:
- name: checkout repository
Expand All @@ -25,6 +26,11 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: install Senzing API
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-version: ${{ matrix.senzingapi-version }}

- name: run go test
run: |
go test -v -p 1 -coverprofile=cover -covermode=atomic -coverpkg=./... ./...
Expand Down

0 comments on commit 386dac5

Please sign in to comment.