Update langchain4j, langchain4j-bedrock to 1.7.1 (#233) #530
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read | |
| outputs: | |
| src: ${{ steps.filter.outputs.src }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| src: | |
| - '.github/workflows/test.yml' | |
| - 'project/**' | |
| - '**.scala' | |
| - '**.sbt' | |
| - '**.conf' | |
| - '**.json' | |
| - '**.js' | |
| - '**.html' | |
| - '**.css' | |
| - '**.ts' | |
| - SCALA_VERSION | |
| code_format: | |
| name: Code format | |
| needs: changes | |
| if: ${{ needs.changes.outputs.src == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: scalafmt | |
| run: ./sbt scalafmtCheckAll | |
| test_scala_3: | |
| name: Scala 3 | |
| needs: changes | |
| if: ${{ needs.changes.outputs.src == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '23' | |
| cache: sbt | |
| - name: Scala 3.x test | |
| run: ./sbt "projectJVM/test" | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() # always run even if the previous step fails | |
| with: | |
| report_paths: '**/target/test-reports/TEST-*.xml' | |
| check_name: Test Report Scala 3.x | |
| annotate_only: true | |
| detailed_summary: true | |
| test_js: | |
| name: Scala.js | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '23' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install npm packages | |
| run: npm install | |
| - name: Scala.js test | |
| run: JVM_OPTS=-Xmx4g ./sbt "projectJS/test" | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() # always run even if the previous step fails | |
| with: | |
| report_paths: '**/target/test-reports/TEST-*.xml' | |
| check_name: Test Report Scala.js | |
| annotate_only: true | |
| detailed_summary: true | |
| test_native_3: | |
| name: Scala Native | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '23' | |
| - name: Scala Native test | |
| run: JVM_OPTS=-Xmx4g ./sbt "projectNative/test" | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() # always run even if the previous step fails | |
| with: | |
| report_paths: '**/target/test-reports/TEST-*.xml' | |
| check_name: Test Report Scala Native | |
| annotate_only: true | |
| detailed_summary: true | |
| test_integration: | |
| name: Integration test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '23' | |
| - name: Integration test | |
| run: ./sbt "integrationTest/test" | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() # always run even if the previous step fails | |
| with: | |
| report_paths: '**/target/test-reports/TEST-*.xml' | |
| check_name: Test Report Integration | |
| annotate_only: true | |
| detailed_summary: true |