fix: 修复 Codex WebSocket 会话在额度耗尽后不切换账号 #1136
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
| name: pr-test-build | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Refresh models catalog | |
| run: | | |
| git fetch --depth 1 https://github.com/router-for-me/models.git main | |
| git show FETCH_HEAD:models.json > internal/registry/models/models.json | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Build | |
| run: | | |
| go build -o test-output ./cmd/server | |
| rm -f test-output |