Skip to content

Fixed an timing issue with near cache clear #263

Fixed an timing issue with near cache clear

Fixed an timing issue with near cache clear #263

Workflow file for this run

# 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 CI build.
# ---------------------------------------------------------------------------
name: CI
on:
workflow_dispatch:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
go-version:
- 1.19.x
- 1.20.x
- 1.21.x
- 1.22.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@v3
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@v3
with:
java-version: '11'
distribution: 'zulu'
- name: Cache Go Modules
uses: actions/cache@v3
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@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '${{ matrix.go-version }}'
- name: Copyright Check
shell: bash
run: |
make copyright
- name: Trivy Scan
shell: bash
run: |
make trivy-scan
- name: E2E Local Tests
shell: bash
run: |
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
INCLUDE_LONG_RUNNING=true PROFILES=,-jakarta,javax COHERENCE_VERSION=22.06.7 make clean generate-proto build-test-images test-e2e-standalone
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-output
path: build/_output/test-logs
- name: E2E Local Tests With Scope
shell: bash
run: |
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
COHERENCE_VERSION=22.06.7 PROFILES=,-jakarta,javax,scope make clean generate-proto build-test-images test-e2e-standalone-scope
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-output
path: build/_output/test-logs
- name: E2E Local Tests SSL (env)
shell: bash
run: |
SECURE=env COHERENCE_IGNORE_INVALID_CERTS=true \
COHERENCE_TLS_CERTS_PATH=`pwd`/test/utils/certs/guardians-ca.crt \
COHERENCE_TLS_CLIENT_CERT=`pwd`/test/utils/certs/star-lord.crt \
COHERENCE_TLS_CLIENT_KEY=`pwd`/test/utils/certs/star-lord.key \
COHERENCE_VERSION=22.06.7 PROFILES=,secure,-jakarta,javax make clean certs generate-proto build-test-images test-e2e-standalone
- name: E2E Local Tests SSL (options)
shell: bash
run: |
SECURE=options COHERENCE_IGNORE_INVALID_CERTS_OPTION=true \
COHERENCE_TLS_CERTS_PATH_OPTION=`pwd`/test/utils/certs/guardians-ca.crt \
COHERENCE_TLS_CLIENT_CERT_OPTION=`pwd`/test/utils/certs/star-lord.crt \
COHERENCE_TLS_CLIENT_KEY_OPTION=`pwd`/test/utils/certs/star-lord.key \
COHERENCE_VERSION=22.06.7 PROFILES=,secure,-jakarta,javax,scope make clean certs generate-proto build-test-images test-e2e-standalone-scope
- name: E2E Local Tests SSL (tlsConfig)
shell: bash
run: |
SECURE=tlsConfig COHERENCE_IGNORE_INVALID_CERTS_OPTION=true \
COHERENCE_TLS_CERTS_PATH_OPTION=`pwd`/test/utils/certs/guardians-ca.crt \
COHERENCE_TLS_CLIENT_CERT_OPTION=`pwd`/test/utils/certs/star-lord.crt \
COHERENCE_TLS_CLIENT_KEY_OPTION=`pwd`/test/utils/certs/star-lord.key \
COHERENCE_VERSION=22.06.7 PROFILES=,secure,-jakarta,javax,scope make clean certs generate-proto build-test-images test-e2e-standalone-scope
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-output
path: build/_output/test-logs