mirror of
https://github.com/openai/openai-go.git
synced 2026-04-04 02:19:59 +09:00
44 lines
688 B
YAML
44 lines
688 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- next
|
|
|
|
jobs:
|
|
lint:
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: ./go.mod
|
|
|
|
- name: Run lints
|
|
run: ./scripts/lint
|
|
test:
|
|
name: test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: ./go.mod
|
|
|
|
- name: Bootstrap
|
|
run: ./scripts/bootstrap
|
|
|
|
- name: Run tests
|
|
run: ./scripts/test
|