diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 966048a..e688418 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -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 diff --git a/.github/workflows/copilot-setup.yml b/.github/workflows/copilot-setup.yml index 6df240b..33bf881 100644 --- a/.github/workflows/copilot-setup.yml +++ b/.github/workflows/copilot-setup.yml @@ -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