|
| 1 | +# Copyright 2024, 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 CI build DAPR TLS |
| 7 | +# --------------------------------------------------------------------------- |
| 8 | +name: CI DAPR TLS |
| 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-22.04 |
| 22 | + env: |
| 23 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 24 | + strategy: |
| 25 | + fail-fast: false |
| 26 | + matrix: |
| 27 | + coherenceVersion: |
| 28 | + - 25.09-SNAPSHOT |
| 29 | + - 25.03.3-SNAPSHOT |
| 30 | + - 25.03.2 |
| 31 | + go-version: |
| 32 | + - 1.24.x |
| 33 | + |
| 34 | +# Checkout the source, we need a depth of zero to fetch all of the history otherwise |
| 35 | +# the copyright check cannot work out the date of the files from Git. |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v4 |
| 38 | + with: |
| 39 | + fetch-depth: 0 |
| 40 | + |
| 41 | + - name: Get Docker Images |
| 42 | + shell: bash |
| 43 | + run: | |
| 44 | + docker pull gcr.io/distroless/java17-debian12 |
| 45 | +
|
| 46 | + - name: Set up JDK 17 for Build |
| 47 | + uses: actions/setup-java@v4 |
| 48 | + with: |
| 49 | + java-version: '17' |
| 50 | + distribution: 'zulu' |
| 51 | + |
| 52 | + - name: Cache Go Modules |
| 53 | + uses: actions/cache@v4 |
| 54 | + with: |
| 55 | + path: ~/go/pkg/mod |
| 56 | + key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }} |
| 57 | + restore-keys: | |
| 58 | + ${{ runner.os }}-go-mods- |
| 59 | +
|
| 60 | + - name: Cache Maven packages |
| 61 | + uses: actions/cache@v4 |
| 62 | + with: |
| 63 | + path: ~/.m2 |
| 64 | + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} |
| 65 | + restore-keys: ${{ runner.os }}-m2 |
| 66 | + |
| 67 | + - name: Set up Go |
| 68 | + uses: actions/setup-go@v5 |
| 69 | + with: |
| 70 | + go-version: '${{ matrix.go-version }}' |
| 71 | + |
| 72 | + - name: Test DAPR |
| 73 | + env: |
| 74 | + COH_VERSION: ${{ matrix.coherenceVersion }} |
| 75 | + shell: bash |
| 76 | + run: | |
| 77 | + go install google.golang.org/grpc/cmd/[email protected] |
| 78 | + COHERENCE_BASE_IMAGE=gcr.io/distroless/java17-debian12 PROFILES=,secure,jakarta,-javax COHERENCE_VERSION=$COH_VERSION make clean certs generate-proto generate-proto-v1 build-test-images test-cluster-startup test-dapr-tls |
| 79 | + make test-cluster-shutdown |
| 80 | +
|
| 81 | + - uses: actions/upload-artifact@v4 |
| 82 | + if: failure() |
| 83 | + with: |
| 84 | + name: test-output-${{ matrix.go-version }}-${{ matrix.coherenceVersion }} |
| 85 | + path: build/_output/test-logs |
0 commit comments