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
5 changes: 4 additions & 1 deletion .github/workflows/bearer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Bearer
uses: bearer/bearer-action@v2
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ jobs:
name: "Go test with Senzing: ${{ matrix.senzingsdk-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
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
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v5
Expand All @@ -38,7 +39,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 @@ -63,20 +64,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 @@ -85,3 +86,4 @@ 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"
19 changes: 11 additions & 8 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ 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]

steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v5
Expand All @@ -43,8 +46,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 @@ -66,20 +68,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 @@ -88,6 +90,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]
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:
name: "Go test with Senzing: ${{ matrix.senzingsdk-version }}; OS: windows-latest; Go: ${{ matrix.go }}"
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
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v5
Expand All @@ -35,7 +38,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 @@ -55,21 +58,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 @@ -78,3 +81,4 @@ 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"
7 changes: 4 additions & 3 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ 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
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- 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
8 changes: 4 additions & 4 deletions .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ 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
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- name: Setup go
uses: actions/setup-go@v5
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
2 changes: 2 additions & 0 deletions .github/workflows/make-go-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Make go version tag
uses: senzing-factory/github-action-make-go-tag@v1
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- uses: streetsidesoftware/cspell-action@v7
with:
Expand Down
Loading