|
| 1 | +# Copyright 2025 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 test streaming against v22.06 versions |
| 7 | +# --------------------------------------------------------------------------- |
| 8 | +name: CI-Streaming v22.06 |
| 9 | + |
| 10 | +on: |
| 11 | + workflow_dispatch: |
| 12 | + push: |
| 13 | + branches: |
| 14 | + - '*' |
| 15 | + |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + runs-on: ubuntu-22.04 |
| 19 | + strategy: |
| 20 | + fail-fast: false |
| 21 | + matrix: |
| 22 | + coherenceVersion: |
| 23 | + - 22.06.13-SNAPSHOT |
| 24 | + - 22.06.12 |
| 25 | + - 14.1.2-0-2 |
| 26 | + - 14.1.2-0-3-SNAPSHOT |
| 27 | + go-version: |
| 28 | + - 1.23.x |
| 29 | + - 1.24.x |
| 30 | + |
| 31 | +# Checkout the source, we need a depth of zero to fetch all of the history otherwise |
| 32 | +# the copyright check cannot work out the date of the files from Git. |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v4 |
| 35 | + with: |
| 36 | + fetch-depth: 0 |
| 37 | + |
| 38 | + - name: Get Docker Images |
| 39 | + shell: bash |
| 40 | + run: | |
| 41 | + docker pull gcr.io/distroless/java17-debian12 |
| 42 | +
|
| 43 | + - name: Set up JDK |
| 44 | + uses: actions/setup-java@v4 |
| 45 | + with: |
| 46 | + java-version: '17' |
| 47 | + distribution: 'zulu' |
| 48 | + |
| 49 | + - name: Cache Go Modules |
| 50 | + uses: actions/cache@v4 |
| 51 | + with: |
| 52 | + path: ~/go/pkg/mod |
| 53 | + key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }} |
| 54 | + restore-keys: | |
| 55 | + ${{ runner.os }}-go-mods- |
| 56 | +
|
| 57 | + - name: Cache Maven packages |
| 58 | + uses: actions/cache@v4 |
| 59 | + with: |
| 60 | + path: ~/.m2 |
| 61 | + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} |
| 62 | + restore-keys: ${{ runner.os }}-m2 |
| 63 | + |
| 64 | + - name: Set up Go |
| 65 | + uses: actions/setup-go@v5 |
| 66 | + with: |
| 67 | + go-version: '${{ matrix.go-version }}' |
| 68 | + |
| 69 | + - name: Verify Examples |
| 70 | + shell: bash |
| 71 | + run: | |
| 72 | + go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 |
| 73 | + COHERENCE_BASE_IMAGE=gcr.io/distroless/java17-debian12 COHERENCE_VERSION=${{ matrix.coherenceVersion }} PROFILES=,-jakarta,javax make clean generate-proto generate-proto-v1 build-test-images test-cluster-startup test-e2e-streaming |
| 74 | + make test-cluster-shutdown || true |
| 75 | +
|
| 76 | + - uses: actions/upload-artifact@v4 |
| 77 | + if: failure() |
| 78 | + with: |
| 79 | + name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }} |
| 80 | + path: build/_output/test-logs |
0 commit comments