fix(test): 测试连接收到 403 时将账号标记为 error 状态 #19
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: backend/go.mod | |
| check-latest: false | |
| cache: true | |
| - name: Verify Go version | |
| run: | | |
| go version | grep -q 'go1.26.1' | |
| - name: Unit tests | |
| working-directory: backend | |
| run: make test-unit | |
| - name: Integration tests | |
| working-directory: backend | |
| run: make test-integration | |
| golangci-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: backend/go.mod | |
| check-latest: false | |
| cache: true | |
| - name: Verify Go version | |
| run: | | |
| go version | grep -q 'go1.26.1' | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.9 | |
| args: --timeout=30m | |
| working-directory: backend |