-
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.
- Loading branch information
Showing
20 changed files
with
212 additions
and
146 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,9 @@ | ||
# Extends the default yamllint config by adjusting some options. | ||
extends: default | ||
|
||
rules: | ||
comments-indentation: disable | ||
line-length: | ||
level: warning | ||
allow-non-breakable-inline-mappings: true | ||
truthy: disable |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'add labels standardized' | ||
name: add labels standardized | ||
|
||
on: | ||
issues: | ||
|
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
name: 'add to project garage dependabot' | ||
name: add to project garage dependabot | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
|
||
add-to-project-dependabot: | ||
secrets: | ||
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} | ||
uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@main | ||
uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v1 | ||
with: | ||
project: ${{ vars.SENZING_PROJECT_GARAGE }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'dependabot approve and merge' | ||
name: dependabot approve and merge | ||
|
||
on: | ||
pull_request: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'go proxy pull' | ||
name: go proxy pull | ||
|
||
on: | ||
push: | ||
|
@@ -11,8 +11,9 @@ permissions: | |
jobs: | ||
go-proxy-pull: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Pull new module version | ||
- name: pull new module version | ||
uses: andrewslotin/[email protected] | ||
with: | ||
import_path: github.com/senzing-garage/go-rest-api-service |
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 |
---|---|---|
@@ -1,45 +1,46 @@ | ||
name: 'go test darwin' | ||
name: go test darwin | ||
|
||
on: [push] | ||
|
||
env: | ||
DYLD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos | ||
LD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos | ||
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db" | ||
SENZING_TOOLS_DATABASE_URL: 'sqlite3://na:na@/tmp/sqlite/G2C.db' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
go-test-darwin: | ||
name: 'go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}' | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go: ["1.21"] | ||
go: ['1.21'] | ||
os: [macos-latest] | ||
senzingapi-version: [staging] | ||
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" | ||
senzingapi-version: [production-v3] | ||
|
||
steps: | ||
- name: Checkout repository | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup go | ||
- name: setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Install Senzing API | ||
uses: Senzing/github-action-install-senzing-api@latest | ||
- name: install Senzing API | ||
uses: senzing-factory/github-action-install-senzing-api@v2 | ||
with: | ||
senzingapi-version: ${{ matrix.senzingapi-version }} | ||
|
||
- name: Copy /etc files | ||
- name: copy /etc files | ||
run: sudo cp testdata/senzing-license/g2.lic /opt/senzing/g2/etc/g2.lic | ||
|
||
- name: Copy test database files | ||
- name: copy test database files | ||
run: mkdir /tmp/sqlite && cp testdata/sqlite/G2C.db /tmp/sqlite/G2C.db | ||
|
||
- name: Run go test | ||
- name: run go test | ||
run: go test -exec /Users/runner/work/go-rest-api-service/go-rest-api-service/bin/macos_exec_dyld.sh -v -p 1 ./... |
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 |
---|---|---|
@@ -1,44 +1,45 @@ | ||
name: 'go test linux' | ||
name: go test linux | ||
|
||
on: [push] | ||
|
||
env: | ||
LD_LIBRARY_PATH: /opt/senzing/g2/lib | ||
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db" | ||
SENZING_TOOLS_DATABASE_URL: 'sqlite3://na:na@/tmp/sqlite/G2C.db' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
go-test-linux: | ||
name: 'go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}' | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go: ["1.21"] | ||
go: ['1.21'] | ||
os: [ubuntu-latest] | ||
senzingapi-version: [latest] | ||
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" | ||
senzingapi-version: [production-v3] | ||
|
||
steps: | ||
- name: Checkout repository | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup go | ||
- name: setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Install Senzing API | ||
uses: Senzing/github-action-install-senzing-api@latest | ||
- name: install Senzing API | ||
uses: senzing-factory/github-action-install-senzing-api@v2 | ||
with: | ||
senzingapi-version: ${{ matrix.senzingapi-version }} | ||
|
||
- name: Copy /etc files | ||
- name: copy /etc files | ||
run: sudo cp testdata/senzing-license/g2.lic /etc/opt/senzing/g2.lic | ||
|
||
- name: Copy test database files | ||
- name: copy test database files | ||
run: mkdir /tmp/sqlite && cp testdata/sqlite/G2C.db /tmp/sqlite/G2C.db | ||
|
||
- name: Run go test | ||
- name: run go test | ||
run: go test -v -p 1 ./... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'gofmt' | ||
name: gofmt | ||
|
||
on: | ||
pull_request: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: lint workflows | ||
|
||
on: | ||
push: | ||
branches-ignore: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
pull-requests: read | ||
statuses: write | ||
|
||
jobs: | ||
lint-workflows: | ||
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: move pr to done dependabot | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
types: [closed] | ||
|
||
jobs: | ||
move-pr-to-done-dependabot: | ||
secrets: | ||
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} | ||
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done-dependabot.yaml@v1 | ||
with: | ||
project: ${{ vars.SENZING_PROJECT_GARAGE }} |
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.