1
1
name : UI
2
2
on : [push]
3
+ env :
4
+ JAVA_VERSION : ' 11'
3
5
jobs :
4
6
ui :
5
7
strategy :
6
8
matrix :
7
- java : [11]
8
9
os : [ubuntu-latest]
9
10
nodejs-version : [12]
10
11
python-version : [3.8]
11
12
docker-version : [19.09]
12
13
docker-channel : [stable]
13
- name : ui java ${{ matrix.java }} on ${{ matrix.os }}
14
+ name : ui on ${{ matrix.os }}
14
15
runs-on : ${{ matrix.os }}
15
16
16
17
steps :
17
18
- name : Git clone
18
- uses : actions/checkout@v1
19
+ uses : actions/checkout@v3
19
20
20
21
- name : Set up Python ${{ matrix.python-version }}
21
- uses : actions/setup-python@v1
22
+ uses : actions/setup-python@v3
22
23
with :
23
24
python-version : ${{ matrix.python-version }}
24
25
- name : Cache python ${{ matrix.python-version }} deps
25
- uses : actions/cache@v1
26
+ uses : actions/cache@v3
26
27
with :
27
28
path : ~/.pip
28
29
key : ${{ runner.os }}-${{ matrix.os }}-pip-
@@ -39,19 +40,19 @@ jobs:
39
40
docker_version : ${{ matrix.docker-version }}
40
41
docker_channel : ${{ matrix.docker-channel }}
41
42
- name : Cache docker ${{ matrix.docker-channel }} ${{ matrix.docker-version }}
42
- uses : actions/cache@v1
43
+ uses : actions/cache@v3
43
44
with :
44
45
path : ~/.docker
45
46
key : ${{ runner.os }}-${{ matrix.os }}-docker-${{ hashFiles('**/Dockerfile*') }}
46
47
restore-keys : |
47
48
${{ runner.os }}-${{ matrix.os }}-docker-
48
49
49
50
- name : Setup NodeJS ${{ matrix.nodejs-version }}
50
- uses : actions/setup-node@v1
51
+ uses : actions/setup-node@v3
51
52
with :
52
53
node-version : ${{ matrix.nodejs-version }}
53
54
- name : Cache npm ${{ matrix.nodejs-version }} deps
54
- uses : actions/cache@v1
55
+ uses : actions/cache@v3
55
56
with :
56
57
path : ~/.npm
57
58
key : ${{ runner.os }}-${{ matrix.os }}-npm-
@@ -60,13 +61,15 @@ jobs:
60
61
- name : Install npm apps (wait-port)
61
62
run : npm install -g wait-port
62
63
63
- - name : Setup java ${{ matrix.java }}
64
- uses : actions/setup-java@v1
64
+ - name : Setup java ${{ env.JAVA_VERSION }}
65
+ uses : actions/setup-java@v3
65
66
with :
66
- java-version : ${{ matrix.java }}
67
+ # 'temurin' 'zulu' 'adopt' 'adopt-hotspot' 'adopt-openj9' 'liberica' 'microsoft'
68
+ distribution : ' temurin'
69
+ java-version : ${{ env.JAVA_VERSION }}
67
70
68
71
- name : Cache maven deps ~/.m2/repository
69
- uses : actions/cache@v1
72
+ uses : actions/cache@v3
70
73
with :
71
74
path : ~/.m2/repository
72
75
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
0 commit comments