-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (32 loc) · 1009 Bytes
/
_test-code-samples.yml
File metadata and controls
36 lines (32 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test Code Samples
on:
workflow_call:
workflow_dispatch:
jobs:
test_sample_code:
name: Test Code Samples
runs-on: ubuntu-latest
strategy:
matrix:
java-version:
- "21"
- "17"
- "11"
- "8"
distribution:
- "temurin"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
cache: "maven"
- name: Install mindee-java-api
run: mvn clean install -DskipTests
- name: Tests sample code
run: |
./tests/test_code_samples.sh ${{ secrets.MINDEE_ACCOUNT_SE_TESTS }} ${{ secrets.MINDEE_ENDPOINT_SE_TESTS }} ${{ secrets.MINDEE_API_KEY_SE_TESTS }} ${{ secrets.MINDEE_V2_SE_TESTS_API_KEY }} ${{ secrets.MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID }}