Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
status: ${{ job.status }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go: ["1.24"]
os: [macos-latest]
senzingsdk-version: [staging-v4]
senzingsdk-version: [production-v4, staging-v4]

steps:
- name: Checkout repository
Expand All @@ -45,7 +46,7 @@ jobs:
- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v3
with:
senzingsdk-repository-path: ${{ secrets.SENZING_OSX_BETA_REPOSITORY }}
senzingsdk-version: ${{ matrix.senzingsdk-version }}

- name: Set environment variables
run: |
Expand All @@ -70,20 +71,20 @@ jobs:

- name: Run go test
run: |
go test -exec "${GITHUB_WORKSPACE}/bin/macos_exec_dyld.sh" -json -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
go test -exec "${GITHUB_WORKSPACE}/bin/macos_exec_dyld.sh" -json -v -p 1 -coverprofile="./cover-${{ matrix.senzingsdk-version }}.out" -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "/tmp/gotest-${{ matrix.senzingsdk-version }}.log" | gotestfmt

- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: cover.out
path: ./cover.out
name: "cover-${{ matrix.senzingsdk-version }}.out"
path: "./cover-${{ matrix.senzingsdk-version }}.out"

- name: Upload test log
uses: actions/upload-artifact@v4
if: always()
with:
name: test-log
path: /tmp/gotest.log
name: "test-log-${{ matrix.senzingsdk-version }}"
path: "/tmp/gotest-${{ matrix.senzingsdk-version }}.log"
if-no-files-found: error

coverage:
Expand All @@ -92,6 +93,7 @@ jobs:
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
with:
coverage-config: ./.github/coverage/testcoverage.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"

slack-notification:
needs: [go-test-darwin]
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
status: ${{ job.status }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go: ["1.24"]
os: [ubuntu-latest]
senzingsdk-version: [staging-v4]
senzingsdk-version: [production-v4, staging-v4]

services:
servegrpc:
Expand Down Expand Up @@ -54,8 +55,7 @@ jobs:
- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v3
with:
senzingsdk-repository-package: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_PACKAGE }}
senzingsdk-repository-path: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_URL }}
senzingsdk-version: ${{ matrix.senzingsdk-version }}

- name: Set environment variables
run: |
Expand All @@ -77,20 +77,20 @@ jobs:

- name: Run go test
run: |
go test -json -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
go test -json -v -p 1 -coverprofile="./cover-${{ matrix.senzingsdk-version }}.out" -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "/tmp/gotest-${{ matrix.senzingsdk-version }}.log" | gotestfmt

- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: cover.out
path: ./cover.out
name: "cover-${{ matrix.senzingsdk-version }}.out"
path: "./cover-${{ matrix.senzingsdk-version }}.out"

- name: Upload test log
uses: actions/upload-artifact@v4
if: always()
with:
name: test-log
path: /tmp/gotest.log
name: "test-log-${{ matrix.senzingsdk-version }}"
path: "/tmp/gotest-${{ matrix.senzingsdk-version }}.log"
if-no-files-found: error

coverage:
Expand All @@ -99,6 +99,7 @@ jobs:
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
with:
coverage-config: ./.github/coverage/testcoverage.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"

slack-notification:
needs: [go-test-linux, coverage]
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
status: ${{ job.status }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
go: ["1.24"]
senzingsdk-version: [staging-v4]
senzingsdk-version: [production-v4, staging-v4]

steps:
- name: Checkout repository
Expand All @@ -42,7 +43,7 @@ jobs:
- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v3
with:
senzingsdk-repository-path: ${{ secrets.SENZING_WIN_BETA_REPOSITORY }}
senzingsdk-version: ${{ matrix.senzingsdk-version }}

- name: Add to "Path" environment variable
run: |
Expand All @@ -62,21 +63,21 @@ jobs:
$Env:SENZING_PATH = "$Env:USERPROFILE\Senzing"
$Env:CGO_CFLAGS = "-g -I$Env:SENZING_PATH\er\sdk\c"
$Env:CGO_LDFLAGS = "-L$Env:SENZING_PATH\er\lib -lSz"
go test -json -v -p 1 -coverprofile=cover -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "C:\Temp\gotest.log" | gotestfmt
cp cover cover.out
go test -json -v -p 1 -coverprofile=cover -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "C:\Temp\gotest-${{ matrix.senzingsdk-version }}.log" | gotestfmt
cp cover "cover-${{ matrix.senzingsdk-version }}.out"

- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: cover.out
path: cover.out
name: "cover-${{ matrix.senzingsdk-version }}.out"
path: "cover-${{ matrix.senzingsdk-version }}.out"

- name: Upload test log
uses: actions/upload-artifact@v4
if: always()
with:
name: test-log
path: "C:\\Temp\\gotest.log"
name: "test-log-${{ matrix.senzingsdk-version }}"
path: "C:\\Temp\\gotest-${{ matrix.senzingsdk-version }}.log"
if-no-files-found: error

coverage:
Expand All @@ -85,6 +86,7 @@ jobs:
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
with:
coverage-config: ./.github/coverage/testcoverage.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"

slack-notification:
needs: [go-test-windows]
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["1.24"]
senzingsdk-version: [production-v4, staging-v4]

steps:
- name: Checkout repository
Expand All @@ -29,8 +31,7 @@ jobs:
- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v3
with:
senzingsdk-repository-package: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_PACKAGE }}
senzingsdk-repository-path: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_URL }}
senzingsdk-version: ${{ matrix.senzingsdk-version }}

- name: Copy Senzing headers
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
govulncheck:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["1.24"]
senzingsdk-version: [staging-v4]
senzingsdk-version: [production-v4, staging-v4]

steps:
- name: Checkout repository
Expand All @@ -31,8 +32,7 @@ jobs:
- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v3
with:
senzingsdk-repository-package: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_PACKAGE }}
senzingsdk-repository-path: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_URL }}
senzingsdk-version: ${{ matrix.senzingsdk-version }}

- uses: golang/govulncheck-action@v1
with:
Expand Down
Loading