Adding firestore/spanner encoders and enabling IT tests #9
This file contains hidden or 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
| name: Java CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: [11, 17] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ matrix.java-version }} | |
| cache: maven | |
| - name: "Debug: list built JARs" | |
| run: | | |
| echo "Common module artifacts:" | |
| ls -1 multicloudj-common/target/ || true | |
| - name: "Debug: where are we?" | |
| run: | | |
| echo "PWD: $PWD" | |
| find . -maxdepth 2 -type f -name pom.xml | |
| - name: "Install Maven 3.9.9" | |
| run: | | |
| MAVEN_VERSION=3.9.9 | |
| curl -fsSL https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ | |
| | tar xz -C $HOME | |
| echo "$HOME/apache-maven-$MAVEN_VERSION/bin" >> $GITHUB_PATH | |
| - name: Check Maven version | |
| run: mvn --version | |
| - name: Build & verify with Maven | |
| # only include this if your parent POM is in a subfolder: | |
| # working-directory: ./multicloudj | |
| run: mvn --batch-mode verify |