Removed redundant generated blank line. (#57) #128
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
| name: Check | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run check task | |
| run: ./gradlew check | |
| - name: Generate CLI man page | |
| run: ./gradlew :cli:generateManPage --no-configuration-cache | |
| - name: Upload CLI man page | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cli-manpage | |
| path: | | |
| cli/build/man/cag.1 | |
| retention-days: 30 | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: | | |
| **/build/test-results/**/*.xml | |
| **/build/reports/tests/**/* | |
| retention-days: 30 | |
| - name: Upload ktlint reports | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: ktlint-reports | |
| path: | | |
| **/build/reports/ktlint/**/* | |
| retention-days: 30 |