Set isDistModule flag to false in the parent pom
[commons-rng.git] / .github / workflows / coverage.yml
index 71abedc87ae085fee38afcfbb12a8c14ea7c9ec6..dc4ef945e1ae7caace7b21afc27a3f92e95839be 100644 (file)
@@ -17,6 +17,9 @@ name: Coverage
 
 on: [push, pull_request]
 
+permissions:
+  contents: read
+
 jobs:
   build:
 
@@ -26,22 +29,17 @@ jobs:
         java: [ 8 ]
 
     steps:
-    - uses: actions/checkout@v2.4.0
-    - uses: actions/cache@v2.1.7
-      with:
-        path: ~/.m2/repository
-        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-        restore-keys: |
-          ${{ runner.os }}-maven-
+    - uses: actions/checkout@v3
     - name: Set up JDK ${{ matrix.java }}
-      uses: actions/setup-java@v2
+      uses: actions/setup-java@v3
       with:
-        distribution: adopt
+        distribution: temurin
         java-version: ${{ matrix.java }}
+        cache: 'maven'
     - name: Build with Maven including the docs-archive module using a profile
       run: mvn -V -Pdocs test jacoco:report-aggregate --no-transfer-progress
 
     - name: Upload coverage to Codecov
-      uses: codecov/codecov-action@v2
+      uses: codecov/codecov-action@v3
       with:
         files: ./docs-archive/target/site/jacoco-aggregate/jacoco.xml