Skip to content

Commit a23810e

Browse files
committed
Initial commit
1 parent 5e63cad commit a23810e

File tree

107 files changed

+24191
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+24191
-42
lines changed
+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Copyright 2021, 2023 Oracle Corporation and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at
3+
# https://oss.oracle.com/licenses/upl.
4+
5+
# ---------------------------------------------------------------------------
6+
# Coherence Go Client GitHub Actions CI build Against Snapshots 22.06
7+
# ---------------------------------------------------------------------------
8+
name: CI Snapshots v22.06
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
schedule:
16+
# Every day at midnight
17+
- cron: '0 0 * * *'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
branch:
26+
- v22.06
27+
28+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
29+
# the copyright check cannot work out the date of the files from Git.
30+
steps:
31+
- uses: actions/checkout@v3
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Get Docker Images
36+
shell: bash
37+
run: |
38+
docker pull gcr.io/distroless/java17
39+
40+
- name: Set up JDK 11 for Build
41+
uses: actions/setup-java@v3
42+
with:
43+
java-version: '11'
44+
distribution: 'zulu'
45+
46+
- name: Build Coherence Snapshot
47+
shell: bash
48+
env:
49+
COH_BRANCH: ${{ matrix.branch }}
50+
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
51+
run: |
52+
# Checkout the git repo for coherence snapshot and build
53+
DIR=`pwd`
54+
CLONE_DIR=coherence-$COH_BRANCH
55+
cd /tmp
56+
git clone https://github.com/oracle/coherence.git $CLONE_DIR
57+
cd $CLONE_DIR/prj
58+
if [ "$COH_BRANCH" != "main" ] ; then
59+
git checkout $COH_BRANCH
60+
fi
61+
make all
62+
cd $DIR
63+
64+
- name: Cache Go Modules
65+
uses: actions/cache@v3
66+
with:
67+
path: ~/go/pkg/mod
68+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
69+
restore-keys: |
70+
${{ runner.os }}-go-mods-
71+
72+
- name: Cache Maven packages
73+
uses: actions/cache@v3
74+
with:
75+
path: ~/.m2
76+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
77+
restore-keys: ${{ runner.os }}-m2
78+
79+
- name: Set up Go
80+
uses: actions/setup-go@v3
81+
with:
82+
go-version: 1.18
83+
84+
- name: Verify Coherence CLI
85+
env:
86+
COH_BRANCH: ${{ matrix.branch }}
87+
shell: bash
88+
run: |
89+
CLONE_DIR=coherence-$COH_BRANCH
90+
POM_FILE=/tmp/${CLONE_DIR}/prj/coherence-bom/pom.xml
91+
if [ ! -r $POM_FILE ] ; then
92+
POM_FILE=/tmp/${CLONE_DIR}/prj/pom.xml
93+
fi
94+
COH_VERSION=`cat ${POM_FILE} | grep '<revision>' | sed -e 's,^.*<revision>,,' -e 's,</revision>.*$,,'`
95+
96+
echo "Running verify against $COH_VERSION"
97+
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
98+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 INCLUDE_LONG_RUNNING=true COHERENCE_VERSION=$COH_VERSION make clean generate-proto build-test-images test-e2e-standalone
99+
100+
- name: Verify Coherence CLI SSL
101+
env:
102+
COH_BRANCH: ${{ matrix.branch }}
103+
shell: bash
104+
run: |
105+
CLONE_DIR=coherence-$COH_BRANCH
106+
POM_FILE=/tmp/${CLONE_DIR}/prj/coherence-bom/pom.xml
107+
if [ ! -r $POM_FILE ] ; then
108+
POM_FILE=/tmp/${CLONE_DIR}/prj/pom.xml
109+
fi
110+
COH_VERSION=`cat ${POM_FILE} | grep '<revision>' | sed -e 's,^.*<revision>,,' -e 's,</revision>.*$,,'`
111+
112+
echo "Running verify against $COH_VERSION"
113+
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
114+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true INCLUDE_LONG_RUNNING=true \
115+
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
116+
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
117+
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
118+
COHERENCE_VERSION=$COH_VERSION PROFILES=,secure make clean certs generate-proto build-test-images test-e2e-standalone
119+
120+
- uses: actions/upload-artifact@v1
121+
if: failure()
122+
with:
123+
name: test-output
124+
path: build/_output/test-logs
+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Copyright 2022, 2023 Oracle Corporation and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at
3+
# https://oss.oracle.com/licenses/upl.
4+
5+
# ---------------------------------------------------------------------------
6+
# Coherence Go Client GitHub Actions CI build Against Snapshots
7+
# ---------------------------------------------------------------------------
8+
name: CI Snapshots
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
schedule:
16+
# Every day at midnight
17+
- cron: '0 0 * * *'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
branch:
26+
- main
27+
28+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
29+
# the copyright check cannot work out the date of the files from Git.
30+
steps:
31+
- uses: actions/checkout@v3
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Get Docker Images
36+
shell: bash
37+
run: |
38+
docker pull gcr.io/distroless/java17
39+
40+
- name: Set up JDK 17 for Build
41+
uses: actions/setup-java@v3
42+
with:
43+
java-version: '17'
44+
distribution: 'zulu'
45+
46+
- name: Build Coherence Snapshot
47+
shell: bash
48+
env:
49+
COH_BRANCH: ${{ matrix.branch }}
50+
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
51+
run: |
52+
# Checkout the git repo for coherence snapshot and build
53+
DIR=`pwd`
54+
CLONE_DIR=coherence-$COH_BRANCH
55+
cd /tmp
56+
git clone https://github.com/oracle/coherence.git $CLONE_DIR
57+
cd $CLONE_DIR/prj
58+
if [ "$COH_BRANCH" != "main" ] ; then
59+
git checkout $COH_BRANCH
60+
fi
61+
make all
62+
cd $DIR
63+
64+
- name: Cache Go Modules
65+
uses: actions/cache@v3
66+
with:
67+
path: ~/go/pkg/mod
68+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
69+
restore-keys: |
70+
${{ runner.os }}-go-mods-
71+
72+
- name: Cache Maven packages
73+
uses: actions/cache@v3
74+
with:
75+
path: ~/.m2
76+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
77+
restore-keys: ${{ runner.os }}-m2
78+
79+
- name: Set up Go
80+
uses: actions/setup-go@v3
81+
with:
82+
go-version: 1.18
83+
84+
- name: Verify Coherence CLI
85+
env:
86+
COH_BRANCH: ${{ matrix.branch }}
87+
shell: bash
88+
run: |
89+
CLONE_DIR=coherence-$COH_BRANCH
90+
POM_FILE=/tmp/${CLONE_DIR}/prj/coherence-bom/pom.xml
91+
if [ ! -r $POM_FILE ] ; then
92+
POM_FILE=/tmp/${CLONE_DIR}/prj/pom.xml
93+
fi
94+
COH_VERSION=`cat ${POM_FILE} | grep '<revision>' | sed -e 's,^.*<revision>,,' -e 's,</revision>.*$,,'`
95+
96+
echo "Running verify against $COH_VERSION"
97+
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
98+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 INCLUDE_LONG_RUNNING=true COHERENCE_VERSION=$COH_VERSION make clean generate-proto build-test-images test-e2e-standalone
99+
100+
- name: Verify Coherence CLI SSL
101+
env:
102+
COH_BRANCH: ${{ matrix.branch }}
103+
shell: bash
104+
run: |
105+
CLONE_DIR=coherence-$COH_BRANCH
106+
POM_FILE=/tmp/${CLONE_DIR}/prj/coherence-bom/pom.xml
107+
if [ ! -r $POM_FILE ] ; then
108+
POM_FILE=/tmp/${CLONE_DIR}/prj/pom.xml
109+
fi
110+
COH_VERSION=`cat ${POM_FILE} | grep '<revision>' | sed -e 's,^.*<revision>,,' -e 's,</revision>.*$,,'`
111+
112+
echo "Running verify against $COH_VERSION"
113+
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
114+
COHERENCE_BASE_IMAGE=gcr.io/distroless/java17 SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true INCLUDE_LONG_RUNNING=true \
115+
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
116+
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
117+
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
118+
COHERENCE_VERSION=$COH_VERSION PROFILES=,secure make clean certs generate-proto build-test-images test-e2e-standalone
119+
120+
- uses: actions/upload-artifact@v1
121+
if: failure()
122+
with:
123+
name: test-output
124+
path: build/_output/test-logs

.github/workflows/build.yaml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Copyright 2022, 2023 Oracle Corporation and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at
3+
# https://oss.oracle.com/licenses/upl.
4+
5+
# ---------------------------------------------------------------------------
6+
# Coherence Go Client GitHub Actions CI build.
7+
# ---------------------------------------------------------------------------
8+
name: CI
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches:
14+
- '*'
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
20+
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
21+
# the copyright check cannot work out the date of the files from Git.
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Get Docker Images
28+
shell: bash
29+
run: |
30+
docker pull gcr.io/distroless/java:11
31+
uname -a
32+
33+
- name: Set up JDK
34+
uses: actions/setup-java@v3
35+
with:
36+
java-version: '11'
37+
distribution: 'zulu'
38+
39+
- name: Cache Go Modules
40+
uses: actions/cache@v3
41+
with:
42+
path: ~/go/pkg/mod
43+
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
44+
restore-keys: |
45+
${{ runner.os }}-go-mods-
46+
47+
- name: Cache Maven packages
48+
uses: actions/cache@v3
49+
with:
50+
path: ~/.m2
51+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
52+
restore-keys: ${{ runner.os }}-m2
53+
54+
- name: Set up Go
55+
uses: actions/setup-go@v3
56+
with:
57+
go-version: 1.19
58+
59+
- name: Copyright Check
60+
shell: bash
61+
run: |
62+
make copyright
63+
64+
- name: E2E Local Tests
65+
shell: bash
66+
run: |
67+
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
68+
INCLUDE_LONG_RUNNING=true COHERENCE_VERSION=22.06.2 make clean generate-proto build-test-images test-e2e-standalone
69+
70+
- name: E2E Local Tests SSL
71+
shell: bash
72+
run: |
73+
SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \
74+
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
75+
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
76+
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
77+
COHERENCE_VERSION=22.06.2 PROFILES=,secure make clean certs generate-proto build-test-images test-e2e-standalone
78+
79+
- uses: actions/upload-artifact@v1
80+
if: failure()
81+
with:
82+
name: test-output
83+
path: build/_output/test-logs

0 commit comments

Comments
 (0)