7
7
8
8
jobs :
9
9
test :
10
- runs-on : ubuntu-20 .04
10
+ runs-on : ubuntu-22 .04
11
11
steps :
12
12
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
13
13
- name : Check out code
14
- uses : actions/checkout@v2.3.4
14
+ uses : actions/checkout@v3
15
15
with :
16
16
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 }}
30
17
31
18
- name : Unit test
32
19
uses : hypertrace/github-actions/gradle@main
33
20
with :
34
21
args : build jacocoTestReport
35
22
36
23
- name : Upload coverage to Codecov
37
- uses : codecov/codecov-action@v2
24
+ uses : codecov/codecov-action@v3
38
25
with :
39
26
name : unit test reports
40
27
fail_ci_if_error : true
@@ -46,15 +33,22 @@ jobs:
46
33
args : copyAllReports --output-dir=/tmp/test-reports
47
34
48
35
- name : Archive test reports
49
- uses : actions/upload-artifact@v1
36
+ uses : actions/upload-artifact@v3
50
37
with :
51
38
name : test-reports
52
39
path : /tmp/test-reports
53
40
if : always()
54
41
55
42
- 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
57
44
if : always()
58
45
with :
59
46
github_token : ${{ secrets.GITHUB_TOKEN }}
60
47
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