openai/openai-java

Public

mirrored fromhttps://github.com/openai/openai-javaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
4e02164b7106dfd00d005f3473fb6d948ad4f5f3

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

59lines · modecode

1name: CI
2on:
3 push:
4 branches:
5 - main
6 pull_request:
7 branches:
8 - main
9 - next
10
11jobs:
12 lint:
13 name: lint
14 runs-on: ubuntu-latest
15 if: github.repository == 'openai/openai-java'
16
17 steps:
18 - uses: actions/checkout@v4
19
20 - name: Validate Gradle wrapper
21 uses: gradle/actions/wrapper-validation@v3
22
23 - name: Set up Java
24 uses: actions/setup-java@v4
25 with:
26 distribution: temurin
27 java-version: |
28 8
29 17
30 cache: gradle
31
32 - name: Set up Gradle
33 uses: gradle/gradle-build-action@v2
34
35 - name: Run lints
36 run: ./scripts/lint
37 test:
38 name: test
39 runs-on: ubuntu-latest
40 if: github.repository == 'openai/openai-java'
41
42 steps:
43 - uses: actions/checkout@v4
44
45 - name: Set up Java
46 uses: actions/setup-java@v4
47 with:
48 distribution: temurin
49 java-version: |
50 8
51 17
52 cache: gradle
53
54 - name: Set up Gradle
55 uses: gradle/gradle-build-action@v2
56
57 - name: Run tests
58 run: ./scripts/test
59
60