Clarify error messages for agent create when no agent in directory
#357
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: Go Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| cache: true | |
| - name: Download Go modules | |
| run: go mod download | |
| - name: Static Check | |
| uses: dominikh/staticcheck-action@v1 | |
| with: | |
| checks: '["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-SA1019"]' | |
| version: "latest" | |
| install-go: false | |
| - name: Test | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| go test -race -json -v ./... 2>&1 | tee test.log | |
| - name: Upload test log | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-log-${{ matrix.os }} | |
| path: test.log | |
| if-no-files-found: warn |