Skip to content

Normalise line endings to LF and declare the policy in .gitattributes #186

Normalise line endings to LF and declare the policy in .gitattributes

Normalise line endings to LF and declare the policy in .gitattributes #186

Workflow file for this run

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