mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2026-01-11 16:17:04 +01:00
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:
6
.github/copilot-instructions.md
vendored
6
.github/copilot-instructions.md
vendored
@@ -72,10 +72,10 @@ This step is **required** before running tests or building the main application.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Build the main application
|
# Build the main application
|
||||||
go build -o cbzoptimizer ./cmd/cbzoptimizer
|
go build -o cbzconverter ./cmd/cbzoptimizer
|
||||||
|
|
||||||
# Build with version information
|
# 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
|
### Testing
|
||||||
@@ -299,7 +299,7 @@ Releases are automated via goreleaser:
|
|||||||
- The `--override` flag deletes the original file after successful conversion
|
- The `--override` flag deletes the original file after successful conversion
|
||||||
- Page splitting is useful for double-page spreads or very tall images
|
- Page splitting is useful for double-page spreads or very tall images
|
||||||
- Watch mode uses inotify on Linux for efficient file monitoring
|
- 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
|
## Getting Help
|
||||||
|
|
||||||
|
|||||||
24
.github/workflows/copilot-setup.yml
vendored
24
.github/workflows/copilot-setup.yml
vendored
@@ -4,11 +4,6 @@ permissions:
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allow manual triggering
|
workflow_dispatch: # Allow manual triggering
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- develop
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
copilot-setup:
|
copilot-setup:
|
||||||
@@ -64,23 +59,6 @@ jobs:
|
|||||||
which gotestsum && gotestsum --version
|
which gotestsum && gotestsum --version
|
||||||
which golangci-lint && golangci-lint --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
|
- name: Setup summary
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@@ -100,4 +78,4 @@ jobs:
|
|||||||
echo "1. Review the copilot instructions at \`.github/copilot-instructions.md\`" >> $GITHUB_STEP_SUMMARY
|
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 "2. Use \`go test ./...\` to run tests" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "3. Use \`golangci-lint run\` for linting" >> $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
|
||||||
|
|||||||
Reference in New Issue
Block a user