Skip to content

chore: Update generation configuration at Thu Nov 28 02:28:27 UTC 2024 #7230

chore: Update generation configuration at Thu Nov 28 02:28:27 UTC 2024

chore: Update generation configuration at Thu Nov 28 02:28:27 UTC 2024 #7230

Workflow file for this run

on:
pull_request:
name: samples
jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Run checkstyle
run: mvn -P lint --quiet --batch-mode checkstyle:check
working-directory: samples/snippets
compile-java8:
name: "compile (8)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
# Java 11 to generate class file targeting Java 8
java-version: 11
distribution: temurin
- name: Compile Spanner
run: mvn clean install -Dclirr.skip=true
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- name: Compile samples
run: mvn compile
working-directory: samples
compile:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: ${{matrix.java}}
distribution: temurin
- name: Compile Spanner
run: mvn clean install -Dclirr.skip=true
- name: Compile samples
run: mvn compile
working-directory: samples