docs: Create COMMANDS.md and link from README (Closes #93) #63
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
    
  
  
    
  | # Java CI Build — runs on pull_request (executes PR code) | |
| # This job does not attempt to write comments/labels; keep write actions in pull_request_target workflows. | |
| name: ⚙️ Java CI Build | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Cache Maven local repository | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Build (Maven) | |
| run: mvn -B -DskipTests=false package | |
| - name: Run tests | |
| run: mvn test -B | |
| - name: Upload build artifact (optional) | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mycmd-build | |
| path: target/*.jar |