feat: add OpenAI-compatible local endpoint backend #1342
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SwiftLint style gate on every PR. | |
| # | |
| # Runs in `--strict` mode: any warning fails the check. `main` is warning-free | |
| # under the ruleset in `.swiftlint.yml`, so this keeps it that way instead of | |
| # letting style warnings quietly accumulate over time. | |
| # | |
| # The output goes through `--reporter github-actions-logging` so findings land | |
| # as inline annotations on the PR diff, which is easier to read than scrolling | |
| # the run log. | |
| name: Lint | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| swiftlint: | |
| name: SwiftLint | |
| runs-on: macos-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # Use the prebuilt SwiftLint on macos-latest. The image ships a recent | |
| # version via Homebrew; calling `swiftlint version` in the log captures | |
| # which one actually ran, which matters when a rule behavior changes | |
| # between versions. | |
| - name: Install / verify SwiftLint | |
| run: | | |
| if ! command -v swiftlint >/dev/null; then | |
| brew install swiftlint | |
| fi | |
| swiftlint version | |
| - name: Run SwiftLint | |
| # Strict: any warning fails the check (see file header). | |
| run: swiftlint --strict --reporter github-actions-logging |