Skip to content

chore(4.x): release 4.10.12-SNAPSHOT #2370

chore(4.x): release 4.10.12-SNAPSHOT

chore(4.x): release 4.10.12-SNAPSHOT #2370

Workflow file for this run

name: NativeTests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- 'spring-cloud-generator/**'
- 'spring-cloud-previews/**'
workflow_dispatch:
env:
EXCLUDED_MODULES: spring-cloud-spanner-spring-data-r2dbc
jobs:
parallel-NativeTests:
if: |
github.actor != 'dependabot[bot]' && ((
github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name
) || (github.event_name != 'pull_request'))
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
it:
- bigquery-sample
- core
- data-firestore
- data-firestore-sample
- datastore
- datastore-basic-sample
- kms
- kms-sample
- logging-sample
- metrics-sample
- pubsub-sample
- pubsub-bus-sample
- pubsub-integration-sample
- pubsub-stream-sample
- secretmanager
- secretmanager-sample
- spanner
- sql-mysql-sample
- sql-postgres-sample
- starter-firestore-sample
- storage
- storage-sample
- trace-sample
- vision
- vision-sample
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d' --utc)" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Set Up Authentication
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.SPRING_CLOUD_GCP_CI_NATIVE_SA_KEY }}
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v1
with:
project_id: spring-cloud-gcp-ci-native
- name: Mvn install # Need this when the directory/pom structure changes
id: install
run: |
./mvnw \
--batch-mode \
--no-transfer-progress \
--threads 1.5C \
--define maven.test.skip=true \
--define maven.javadoc.skip=true \
install
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm-community'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Native Tests in Modules
id: intTest
env:
DB_PASSWORD: ${{ secrets.SPRING_CLOUD_GCP_CI_NATIVE_DB_ROOT_PASSWORD }}
run: MODULE_UNDER_TEST="${{ matrix.it }}" ./.github/workflows/scripts/native-image-tests.sh
- name: Aggregate Report
run: |
./mvnw \
--batch-mode \
--no-transfer-progress \
--define aggregate=true \
--activate-profiles spring-native,\!default \
surefire-report:report-only
- name: Archive logs
if: always()
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: Native Test Logs
path: |
**/target/failsafe-reports/*
**/target/site