chore: Update generation configuration at Wed Dec 25 02:22:58 UTC 2024 #7545
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |