File tree Expand file tree Collapse file tree 4 files changed +23
-18
lines changed
Expand file tree Collapse file tree 4 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 2626
2727jobs :
2828 coverage :
29- runs-on : ubuntu-latest
29+ runs-on : ubuntu-22.04
3030 strategy :
3131 matrix :
3232 include :
33- - scala : 2.12.18
33+ - scala : 2.12.20
3434 scala_short : 2.12
35- spark : 3.4.1
35+ spark : 3.4.4
3636 overall : 80.0
3737 changed : 80.0
3838 name : Test Coverage on Scala ${{matrix.scala}}
3939 steps :
4040 - name : Checkout code
41- uses : actions/checkout@v2
42- - name : Setup Scala
43- uses : olafurpg /setup-scala@v10
41+ uses : actions/checkout@v6.0.2
42+ - name : Setup JDK
43+ uses : actions /setup-java@v5.1.0
4444 with :
45- java-version : " adopt@1.8"
45+ distribution : temurin
46+ java-version : 8
47+ cache : sbt
4648 - name : Build and run tests
4749 working-directory : ./pramen
4850 run : sbt -DSPARK_VERSION=${{matrix.spark}} ++${{matrix.scala}} jacoco
4951 - name : Add coverage to PR
5052 id : jacoco
51- uses : madrapps/jacoco-report@v1.7.1
53+ # gh api repos/madrapps/jacoco-report/commits/v1.7.2 --jq '.sha'
54+ uses : madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848
5255 with :
5356 paths : >
5457 ${{ github.workspace }}/pramen/core/target/scala-${{ matrix.scala_short }}/jacoco/report/jacoco.xml,
6568 echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}"
6669 - name : Fail PR if unit test coverage is less than ${{ matrix.overall }}%
6770 if : (steps.jacoco.outputs.coverage-overall < matrix.overall)
68- uses : actions/github-script@v6
71+ uses : actions/github-script@v6.4.1
6972 with :
7073 script : |
7174 core.setFailed('Unit test coverage is less than ${{ matrix.overall }}%!')
Original file line number Diff line number Diff line change @@ -25,12 +25,13 @@ jobs:
2525 os-name : [ ubuntu-22.04 ]
2626 runs-on : ${{ matrix.os-name }}
2727 steps :
28- - uses : actions/checkout@v2
29- - uses : actions/setup-python@v2
28+ - uses : actions/checkout@v6.0.2
29+ - uses : actions/setup-python@v6.1.0
3030 with :
3131 python-version : ${{ matrix.python-version }}
3232 - name : setup poetry
33- uses : abatilo/actions-poetry@v3.0.2
33+ # gh api repos/abatilo/actions-poetry/commits/v3.0.2 --jq '.sha'
34+ uses : abatilo/actions-poetry@65c61eae400c65c9510a584af85138c1ae19bbc0
3435 with :
3536 poetry-version : 2.1.3
3637 - name : install dependencies
@@ -44,12 +45,13 @@ jobs:
4445 os-name : [ ubuntu-22.04 ]
4546 runs-on : ${{ matrix.os-name }}
4647 steps :
47- - uses : actions/checkout@v2
48- - uses : actions/setup-python@v4
48+ - uses : actions/checkout@v6.0.2
49+ - uses : actions/setup-python@v6.1.0
4950 with :
5051 python-version : ${{ matrix.python-version }}
5152 - name : setup poetry
52- uses : abatilo/actions-poetry@v3.0.2
53+ # gh api repos/abatilo/actions-poetry/commits/v3.0.2 --jq '.sha'
54+ uses : abatilo/actions-poetry@65c61eae400c65c9510a584af85138c1ae19bbc0
5355 with :
5456 poetry-version : 2.1.3
5557 - name : install dependencies
Original file line number Diff line number Diff line change 3030 publish :
3131 runs-on : ubuntu-22.04
3232 steps :
33- - uses : actions/checkout@v4
33+ - uses : actions/checkout@v6.0.2
3434 with :
3535 fetch-depth : 0
3636 - uses : actions/setup-java@v4.2.1
Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ jobs:
3838 name : Test Spark ${{matrix.spark}} on Scala ${{matrix.scala}}
3939 steps :
4040 - name : Checkout code
41- uses : actions/checkout@v4
41+ uses : actions/checkout@v6.0.2
4242 - uses : coursier/cache-action@v6
4343 - name : Setup JDK and sbt
44- uses : actions/setup-java@v4
44+ uses : actions/setup-java@v4.2.1
4545 with :
4646 distribution : temurin
4747 java-version : 8
You can’t perform that action at this time.
0 commit comments