@@ -26,50 +26,60 @@ jobs:
2626 runs-on : ubuntu-latest
2727 steps :
2828 - name : Checkout code
29- uses : actions/checkout@v2
29+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
30+ with :
31+ persist-credentials : false
32+
3033 - name : Setup Scala
31- uses : olafurpg/setup-scala@v10
34+ uses : olafurpg/setup-scala@32ffa16635ff8f19cc21ea253a987f0fdf29844c
3235 with :
333637+
3438 - name : Build and run tests
3539 run : sbt jacoco
40+
3641 - name : Add coverage to PR for scala 2.11 and spark 2.4
3742 id : jacoco211
38- uses : madrapps/jacoco-report@v1.7.2
43+ uses : madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848
3944 with :
4045 paths : ${{ github.workspace }}/spark-commons/spark2.4-jvm-2.11/jacoco/report/jacoco.xml
4146 token : ${{ secrets.GITHUB_TOKEN }}
4247 min-coverage-overall : 0.0
4348 min-coverage-changed-files : 80.0
4449 title : JaCoCo code coverage report - scala:2.11 - spark:2.4
4550 update-comment : true
51+
4652 - name : Get the Coverage info
4753 run : |
4854 echo "Total coverage ${{ steps.jacoco211.outputs.coverage-overall }}"
4955 echo "Changed Files coverage ${{ steps.jacoco211.outputs.coverage-changed-files }}"
56+
5057 - name : Add coverage to PR for scala 2.12 and spark 3.3
5158 id : jacoco212
52- uses : madrapps/jacoco-report@v1.7.2
59+ uses : madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848
5360 with :
5461 paths : ${{ github.workspace }}/spark-commons/spark3-jvm-2.12/jacoco/report/jacoco.xml
5562 token : ${{ secrets.GITHUB_TOKEN }}
5663 min-coverage-overall : 0.0
5764 min-coverage-changed-files : 80.0
5865 title : JaCoCo code coverage report - scala:2.12 - spark:3.3
5966 update-comment : true
67+
6068 - name : Get the Coverage info
6169 run : |
6270 echo "Total coverage ${{ steps.jacoco212.outputs.coverage-overall }}"
6371 echo "Changed Files coverage ${{ steps.jacoco212.outputs.coverage-changed-files }}"
72+
6473 - name : Fail PR if changed files coverage is less than 80%
6574 if : ${{ steps.jacoco211.outputs.coverage-changed-files < 80.0 }}
66- uses : actions/github-script@v6
75+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
6776 with :
6877 script : |
6978 core.setFailed('Changed files coverage is less than 80%!')
79+
7080 - name : Fail PR if changed files coverage is less than 80%
7181 if : ${{ steps.jacoco212.outputs.coverage-changed-files < 80.0 }}
72- uses : actions/github-script@v6
82+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
7383 with :
7484 script : |
7585 core.setFailed('Changed files coverage is less than 80%!')
0 commit comments