77
88jobs :
99 test :
10- runs-on : ubuntu-20 .04
10+ runs-on : ubuntu-22 .04
1111 steps :
1212 # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
1313 - name : Check out code
14- uses : actions/checkout@v2.3.4
14+ uses : actions/checkout@v3
1515 with :
1616 fetch-depth : 0
17-
18- - name : create checksum file
19- uses : hypertrace/github-actions/checksum@main
20-
21- - name : Cache packages
22- id : cache-packages
23- uses : actions/cache@v2
24- with :
25- path : ~/.gradle
26- key : gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
27- restore-keys : |
28- gradle-packages-${{ runner.os }}-${{ github.job }}
29- gradle-packages-${{ runner.os }}
3017
3118 - name : Unit test
3219 uses : hypertrace/github-actions/gradle@main
3320 with :
3421 args : build jacocoTestReport
3522
3623 - name : Upload coverage to Codecov
37- uses : codecov/codecov-action@v2
24+ uses : codecov/codecov-action@v3
3825 with :
3926 name : unit test reports
4027 fail_ci_if_error : true
@@ -46,15 +33,22 @@ jobs:
4633 args : copyAllReports --output-dir=/tmp/test-reports
4734
4835 - name : Archive test reports
49- uses : actions/upload-artifact@v1
36+ uses : actions/upload-artifact@v3
5037 with :
5138 name : test-reports
5239 path : /tmp/test-reports
5340 if : always()
5441
5542 - name : Publish Unit Test Results
56- uses : docker://ghcr.io/enricomi/ publish-unit-test-result-action:v1.6
43+ uses : EnricoMi/ publish-unit-test-result-action@v2
5744 if : always()
5845 with :
5946 github_token : ${{ secrets.GITHUB_TOKEN }}
6047 files : ./**/build/test-results/**/*.xml
48+
49+ dependency-check :
50+ runs-on : ubuntu-22.04
51+ steps :
52+ - name : Dependency Check
53+ uses : hypertrace/github-actions/dependency-check@main
54+
0 commit comments