Fix: Use correct command name 'cbzconverter' and make workflow manual-only

Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-10 20:59:54 +00:00
parent da65eeecba
commit 552364f69c
2 changed files with 4 additions and 26 deletions

View File

@@ -72,10 +72,10 @@ This step is **required** before running tests or building the main application.
```bash
# Build the main application
go build -o cbzoptimizer ./cmd/cbzoptimizer
go build -o cbzconverter ./cmd/cbzoptimizer
# Build with version information
go build -ldflags "-s -w -X main.version=1.0.0 -X main.commit=abc123 -X main.date=2024-01-01" ./cmd/cbzoptimizer
go build -ldflags "-s -w -X main.version=1.0.0 -X main.commit=abc123 -X main.date=2024-01-01" -o cbzconverter ./cmd/cbzoptimizer
```
### Testing
@@ -299,7 +299,7 @@ Releases are automated via goreleaser:
- The `--override` flag deletes the original file after successful conversion
- Page splitting is useful for double-page spreads or very tall images
- Watch mode uses inotify on Linux for efficient file monitoring
- Bash completion is available via `cbzoptimizer completion bash`
- Bash completion is available via `cbzconverter completion bash`
## Getting Help

View File

@@ -4,11 +4,6 @@ permissions:
on:
workflow_dispatch: # Allow manual triggering
push:
branches:
- main
- develop
pull_request:
jobs:
copilot-setup:
@@ -64,23 +59,6 @@ jobs:
which gotestsum && gotestsum --version
which golangci-lint && golangci-lint --version
- name: Run basic tests
run: |
echo "Running basic tests to verify setup..."
mkdir -p test-results
gotestsum --junitfile test-results/junit.xml --format testname -- -race -coverprofile=coverage.txt -covermode=atomic ./...
echo "Tests completed successfully"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v5
with:
name: copilot-setup-test-results
path: |
test-results/junit.xml
coverage.txt
retention-days: 7
- name: Setup summary
if: always()
run: |
@@ -100,4 +78,4 @@ jobs:
echo "1. Review the copilot instructions at \`.github/copilot-instructions.md\`" >> $GITHUB_STEP_SUMMARY
echo "2. Use \`go test ./...\` to run tests" >> $GITHUB_STEP_SUMMARY
echo "3. Use \`golangci-lint run\` for linting" >> $GITHUB_STEP_SUMMARY
echo "4. Build the application with \`go build ./cmd/cbzoptimizer\`" >> $GITHUB_STEP_SUMMARY
echo "4. Build the application with \`go build -o cbzconverter ./cmd/cbzoptimizer\`" >> $GITHUB_STEP_SUMMARY