Skip to content

Pull Request

Pull Request #25

Workflow file for this run

name: Pull Request
on:
workflow_dispatch: {}
jobs:
build:
strategy:
fail-fast: false
matrix:
javaVersion: [8, 11, 16, 17]
os: [ubuntu-latest]
gradleVersion: [6.8]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.javaVersion}}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ matrix.gradleVersion }}
cache-disabled: true
- name: Setup gradle.properties
if: matrix.javaVersion == 16 || matrix.javaVersion == 17
run: |
echo "org.gradle.jvmargs=-Xmx4096m --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED" >> gradle.properties
- name: Execute Gradle build
run: gradle build
- name: Build jar
run: gradle jar
integration-test:
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
javaVersion: [8, 17]
os: [ubuntu-latest]
gradleVersion: [8.3]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.javaVersion}}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ matrix.gradleVersion }}
- name: Setup gradle.properties
if: matrix.javaVersion == 16 || matrix.javaVersion == 17
run: |
echo "org.gradle.jvmargs=-Xmx4096m --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED" >> gradle.properties
- name: Execute Gradle build
run: gradle build
- name: Run integration tests
run: gradle integrationTest
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}