foxed problems #18
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: CodeClimate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| codeclimate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Run Checkstyle and report to Code Climate | |
| run: ./gradlew checkstyleMain checkstyleTest | |
| - name: Upload Checkstyle report | |
| run: | | |
| cc-test-reporter format-coverage app/build/reports/checkstyle/main.xml -t checkstyle | |
| cc-test-reporter upload-coverage |