| Marc Kupietz | 2ec7f9f | 2025-11-21 11:24:14 +0100 | [diff] [blame] | 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ main ] |
| 6 | pull_request: |
| 7 | branches: [ main ] |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | runs-on: ubuntu-latest |
| 12 | steps: |
| 13 | - uses: actions/checkout@v4 |
| 14 | - name: Set up JDK 21 |
| 15 | uses: actions/setup-java@v4 |
| 16 | with: |
| 17 | distribution: 'temurin' |
| 18 | java-version: '21' |
| 19 | - name: Build with Gradle |
| 20 | run: ./gradlew build --no-daemon |
| 21 | - name: Run tests |
| 22 | run: ./gradlew test --no-daemon |
| 23 | - name: Upload build artifacts |
| 24 | uses: actions/upload-artifact@v4 |
| 25 | with: |
| 26 | name: korapxmltool-jar |
| 27 | path: app/build/libs/*.jar |