forked from TheoKanning/openai-java
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 867 Bytes
/
test.yml
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
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN }}
# OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# for setup launchable command
- uses: actions/setup-python@v5
- name: Install launchable CLI
run: |
pip install launchable
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
- name: Record commits and build
run: 'launchable record build --name "$GITHUB_RUN_ID" --source .'
- name: Test
run: ./gradlew test --stacktrace
- name: Record
run: launchable record tests gradle **/build/test-results/test/*.xml
if: always()