Normalise line endings to LF and declare the policy in .gitattributes #186
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: Java CI | |
| on: [push, pull_request] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Download JUnit 5 dependencies | |
| run: | | |
| mvn dependency:get -q -Dartifact=org.junit.jupiter:junit-jupiter-api:5.9.3 | |
| mvn dependency:get -q -Dartifact=org.junit.jupiter:junit-jupiter-engine:5.9.3 | |
| mvn dependency:get -q -Dartifact=org.junit.platform:junit-platform-engine:1.9.3 | |
| mvn dependency:get -q -Dartifact=org.junit.platform:junit-platform-commons:1.9.3 | |
| mvn dependency:get -q -Dartifact=org.junit.platform:junit-platform-launcher:1.9.3 | |
| mvn dependency:get -q -Dartifact=org.opentest4j:opentest4j:1.2.0 | |
| - name: Build with Ant | |
| run: ant -noinput | |
| - name: Run tests | |
| run: ant -noinput test | |
| - name: Checkstyle (strict gate) | |
| run: ant -noinput checkstyle-strict | |
| - name: Generate coverage report | |
| run: ant -noinput coverage | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: build/coverage-report/ | |
| retention-days: 14 |