Skip to content

setting concurrency to 1 #19

setting concurrency to 1

setting concurrency to 1 #19

name: GraalVM Integration Tests
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
types: [synchronize]
jobs:
graalvmIntegrationTests:
if: github.repository == 'GoogleCloudPlatform/cloud-spanner-r2dbc'
runs-on: ubuntu-20.04
strategy:
max-parallel: 1
fail-fast: false
matrix:
java: [11, 17]
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: '22.3.2'
- 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
- name: Mvn install # Need this when the directory/pom structure changes
id: install1
continue-on-error: true
run: |
./mvnw \
--batch-mode \
--threads 1.5C \
--define maven.test.skip=true \
--define maven.javadoc.skip=true \
install
- name: Retry install on failure
id: install2
if: steps.install1.outcome == 'failure'
run: |
./mvnw \
--batch-mode \
--threads 1.5C \
--define maven.test.skip=true \
--define maven.javadoc.skip=true \
install
- name: GraalVM Integration Tests
id: intTest1
continue-on-error: true
run: |
./mvnw \
clean \
test \
-P native \
-ntp \
-Dspanner.database=graalvm_test_db