generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to use /v2 * Update readme * Fixup coverage failure * Add tests for v1.2.2 * Exclude queues examples on old versions
- Loading branch information
1 parent
a1f7a65
commit a2705c6
Showing
83 changed files
with
389 additions
and
239 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,86 @@ | ||
# Copyright 2023, 2024 Oracle Corporation and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# https://oss.oracle.com/licenses/upl. | ||
|
||
# --------------------------------------------------------------------------- | ||
# Coherence Go Client GitHub Actions test examples against v23.03+ | ||
# and v1.2.2 client | ||
# --------------------------------------------------------------------------- | ||
name: CI-Examples Jakarta - v1.2.2 | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
coherenceVersion: | ||
- 24.09 | ||
- 24.09.1-SNAPSHOT | ||
go-version: | ||
- 1.19.x | ||
- 1.20.x | ||
- 1.21.x | ||
- 1.22.x | ||
- 1.23.x | ||
|
||
# Checkout the source, we need a depth of zero to fetch all of the history otherwise | ||
# the copyright check cannot work out the date of the files from Git. | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get Docker Images | ||
shell: bash | ||
run: | | ||
docker pull gcr.io/distroless/java17 | ||
uname -a | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
|
||
- name: Cache Go Modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-mods- | ||
- name: Cache Maven packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '${{ matrix.go-version }}' | ||
|
||
- name: Verify Examples | ||
shell: bash | ||
run: | | ||
git checkout v1.2.2 | ||
# Change the jib-maven-plugin as this version fails | ||
sed -i.bak 's/<version.plugin.jib>3\.3\.0<\/version.plugin.jib>/<version.plugin.jib>3.4.3<\/version.plugin.jib>/' java/pom.xml | ||
go get google.golang.org/grpc/cmd/[email protected] | ||
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,jakarta,-javax make clean generate-proto build-test-images test-cluster-startup test-examples | ||
make test-cluster-shutdown || true | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }} | ||
path: build/_output/test-logs |
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,86 @@ | ||
# Copyright 2022, 2024 Oracle Corporation and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# https://oss.oracle.com/licenses/upl. | ||
|
||
# --------------------------------------------------------------------------- | ||
# Coherence Go Client GitHub Actions test examples against v22.06 versions | ||
# and v1.2.2 client | ||
# --------------------------------------------------------------------------- | ||
name: CI-Examples v22.06 - v1.2.2 | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
coherenceVersion: | ||
- 22.06.11-SNAPSHOT | ||
- 22.06.10 | ||
go-version: | ||
- 1.19.x | ||
- 1.20.x | ||
- 1.21.x | ||
- 1.22.x | ||
- 1.23.x | ||
|
||
# Checkout the source, we need a depth of zero to fetch all of the history otherwise | ||
# the copyright check cannot work out the date of the files from Git. | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get Docker Images | ||
shell: bash | ||
run: | | ||
docker pull gcr.io/distroless/java:11 | ||
uname -a | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
|
||
- name: Cache Go Modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-mods- | ||
- name: Cache Maven packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '${{ matrix.go-version }}' | ||
|
||
- name: Verify Examples | ||
shell: bash | ||
run: | | ||
git checkout v1.2.2 | ||
# Change the jib-maven-plugin as this version fails | ||
sed -i.bak 's/<version.plugin.jib>3\.3\.0<\/version.plugin.jib>/<version.plugin.jib>3.4.3<\/version.plugin.jib>/' java/pom.xml | ||
go get google.golang.org/grpc/cmd/[email protected] | ||
COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,-jakarta,javax make clean generate-proto build-test-images test-cluster-startup test-examples | ||
make test-cluster-shutdown || true | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }} | ||
path: build/_output/test-logs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,11 +50,12 @@ docker run -d -p 1408:1408 -p 30000:30000 ghcr.io/oracle/coherence-ce:24.09 | |
```bash | ||
go get github.com/oracle/coherence-go-client@latest | ||
```` | ||
After executing this command coherence-go-client is ready to use, and it's source will be in: | ||
|
||
> Note: If you wish to use the latest v2.0.0-rc1, please use the following: | ||
|
||
```bash | ||
$GOPATH/pkg/mod/github.com/oracle/coherence-go-client@version | ||
``` | ||
go get github.com/oracle/coherence-go-client/[email protected] | ||
```` | ||
## <a name="doc"></a>Documentation | ||
|
@@ -72,6 +73,8 @@ issues `Put()`, `Get()` and `Size()` operations. | |
> Note: Keys and values can also be Go `structs`. See detailed examples [here](examples#basic). | ||
> Note: for v2.0.0-rc1, please import `github.com/oracle/coherence-go-client/v2/coherence` | ||
```go | ||
package main | ||
|
||
|
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.