77
88jobs :
99 test :
10- runs-on : ubuntu-20 .04
10+ runs-on : ubuntu-22 .04
1111 steps :
12- # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
12+ # 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
33- with :
20+ with :
3421 args : 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 flags : unit
4128
4229 - name : copy test reports
4330 uses : hypertrace/github-actions/gradle@main
44- with :
31+ with :
4532 args : copyAllReports --output-dir=/tmp/test-reports
4633
4734 - name : Archive test reports
48- uses : actions/upload-artifact@v1
35+ uses : actions/upload-artifact@v3
4936 with :
5037 name : test-reports
5138 path : /tmp/test-reports
5239 if : always()
53-
40+
5441 - name : Publish Unit Test Results
55- uses : docker://ghcr.io/enricomi/ publish-unit-test-result-action:v1.6
42+ uses : EnricoMi/ publish-unit-test-result-action@v2
5643 if : always()
5744 with :
5845 github_token : ${{ secrets.GITHUB_TOKEN }}
59- files : ./**/build/test-results/**/*.xml
46+ files : ./**/build/test-results/**/*.xml
47+
48+ dependency-check :
49+ runs-on : ubuntu-22.04
50+ steps :
51+ - name : Dependency Check
52+ uses : hypertrace/github-actions/dependency-check@main
0 commit comments