openai/openai-go
Publicmirrored from https://github.com/openai/openai-goAvailable
.github/workflows/ci.yml
43lines · modecode
| 1 | name: CI |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - main |
| 6 | pull_request: |
| 7 | branches: |
| 8 | - main |
| 9 | - next |
| 10 | |
| 11 | jobs: |
| 12 | lint: |
| 13 | name: lint |
| 14 | runs-on: ubuntu-latest |
| 15 | |
| 16 | |
| 17 | steps: |
| 18 | - uses: actions/checkout@v4 |
| 19 | |
| 20 | - name: Setup go |
| 21 | uses: actions/setup-go@v5 |
| 22 | with: |
| 23 | go-version-file: ./go.mod |
| 24 | |
| 25 | - name: Run lints |
| 26 | run: ./scripts/lint |
| 27 | test: |
| 28 | name: test |
| 29 | runs-on: ubuntu-latest |
| 30 | |
| 31 | steps: |
| 32 | - uses: actions/checkout@v4 |
| 33 | |
| 34 | - name: Setup go |
| 35 | uses: actions/setup-go@v5 |
| 36 | with: |
| 37 | go-version-file: ./go.mod |
| 38 | |
| 39 | - name: Bootstrap |
| 40 | run: ./scripts/bootstrap |
| 41 | |
| 42 | - name: Run tests |
| 43 | run: ./scripts/test |
| 44 | |