1# auto-generated by scripts/builds. DO NOT EDIT.
2name: openai
3
4on:
5 push:
6 branches:
7 - main
8 pull_request:
9 paths:
10 - providers/openai/**
11 - .github/workflows/openai.yml
12
13jobs:
14 build:
15 strategy:
16 matrix:
17 os: [ubuntu-latest, macos-latest, windows-latest]
18 runs-on: ${{ matrix.os }}
19 defaults:
20 run:
21 working-directory: ./providers/openai
22 steps:
23 - uses: actions/checkout@v4
24 - uses: actions/setup-go@v5
25 with:
26 go-version-file: ./providers/openai/go.mod
27 cache: true
28 cache-dependency-path: ./providers/openai/go.sum
29 - run: go build -v ./...
30 - run: go test -race -v ./...
31
32 dependabot:
33 needs: [build]
34 runs-on: ubuntu-latest
35 permissions:
36 pull-requests: write
37 contents: write
38 if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
39 steps:
40 - id: metadata
41 uses: dependabot/fetch-metadata@v2
42 with:
43 github-token: "${{ secrets.GITHUB_TOKEN }}"
44 - run: |
45 gh pr review --approve "$PR_URL"
46 gh pr merge --squash --auto "$PR_URL"
47 env:
48 PR_URL: ${{github.event.pull_request.html_url}}
49 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
50
51 lint:
52 uses: charmbracelet/meta/.github/workflows/lint.yml@main
53 with:
54 directory: ./providers/openai/...
55 golangci_path: .golangci.yml
56