openai/openai-go
Publicmirrored from https://github.com/openai/openai-goAvailable
.github/workflows/ci.yml
49lines · modecode
| 1 | name: CI |
| 2 | on: |
| 3 | push: |
| 4 | branches-ignore: |
| 5 | - 'generated' |
| 6 | - 'codegen/**' |
| 7 | - 'integrated/**' |
| 8 | - 'stl-preview-head/**' |
| 9 | - 'stl-preview-base/**' |
| 10 | pull_request: |
| 11 | branches-ignore: |
| 12 | - 'stl-preview-head/**' |
| 13 | - 'stl-preview-base/**' |
| 14 | |
| 15 | jobs: |
| 16 | lint: |
| 17 | timeout-minutes: 10 |
| 18 | name: lint |
| 19 | runs-on: ${{ github.repository == 'stainless-sdks/openai-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} |
| 20 | if: github.event_name == 'push' || github.event.pull_request.head.repo.fork |
| 21 | |
| 22 | steps: |
| 23 | - uses: actions/checkout@v4 |
| 24 | |
| 25 | - name: Setup go |
| 26 | uses: actions/setup-go@v5 |
| 27 | with: |
| 28 | go-version-file: ./go.mod |
| 29 | |
| 30 | - name: Run lints |
| 31 | run: ./scripts/lint |
| 32 | test: |
| 33 | timeout-minutes: 10 |
| 34 | name: test |
| 35 | runs-on: ${{ github.repository == 'stainless-sdks/openai-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} |
| 36 | if: github.event_name == 'push' || github.event.pull_request.head.repo.fork |
| 37 | steps: |
| 38 | - uses: actions/checkout@v4 |
| 39 | |
| 40 | - name: Setup go |
| 41 | uses: actions/setup-go@v5 |
| 42 | with: |
| 43 | go-version-file: ./go.mod |
| 44 | |
| 45 | - name: Bootstrap |
| 46 | run: ./scripts/bootstrap |
| 47 | |
| 48 | - name: Run tests |
| 49 | run: ./scripts/test |
| 50 | |