Skip to content

chore(main): release 1.3.1-SNAPSHOT #151

chore(main): release 1.3.1-SNAPSHOT

chore(main): release 1.3.1-SNAPSHOT #151

# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Github action job to test core java library features on
# downstream client libraries before they are released.
name: GraalVM Integration Tests
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
types: [synchronize]
jobs:
graalvmIntegrationTests:
name: ${{ matrix.name }}
if: github.repository == 'GoogleCloudPlatform/cloud-spanner-r2dbc'
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- java: '11'
version: '22.3.2'
components: 'native-image'
name: 'Java 11 | GraalVM 22.3.2'
- java: '17'
version: '22.3.2'
components: 'native-image'
name: 'Java 17 | GraalVM 22.3.2'
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d' --utc)" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ matrix.java }}
version: ${{ matrix.version }}
components: ${{ matrix.components }}
- name: Environment Info
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- uses: actions/cache@v3
id: mvn-cache
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.date }}
- name: Set Up Authentication
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.CLOUD_SPANNER_R2DBC_CI_SA_KEY }}
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v1
with:
version: latest
project_id: cloud-spanner-r2dbc-ci
export_default_credentials: true
- name: Maven go offline
id: mvn-offline
if: steps.mvn-cache.outputs.cache-hit != 'true'
run: ./mvnw compile dependency:go-offline -ntp
- name: GraalVM Integration Tests
id: intTest1
run: |
./mvnw \
clean \
test \
-P native \
-ntp \
-Dspanner.database=graalvm_test_db \
-Dit.use-random-suffix=true