@@ -19,23 +19,17 @@ jobs:
19
19
runs-on : ${{ matrix.os }}
20
20
steps :
21
21
- uses : actions/checkout@v2
22
- - uses : microsoft/playwright-github-action@v1.5.0
22
+ - uses : microsoft/playwright-github-action@v1
23
23
- name : Set up JDK 1.8
24
24
uses : actions/setup-java@v2
25
25
with :
26
26
distribution : zulu
27
27
java-version : 8
28
- - name : Cache Maven packages
29
- uses : actions/cache@v2
30
- with :
31
- path : ~/.m2
32
- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
33
- restore-keys : ${{ runner.os }}-m2
34
28
- name : Download drivers
35
29
shell : bash
36
30
run : scripts/download_driver_for_all_platforms.sh
37
- - name : Build with Maven
38
- run : mvn -B package -D skipTests --no-transfer-progress
31
+ - name : Build & Install
32
+ run : mvn -B install -D skipTests --no-transfer-progress
39
33
- name : Run tests
40
34
run : mvn test --no-transfer-progress --fail-at-end
41
35
env :
50
44
env :
51
45
BROWSER : ${{ matrix.browser }}
52
46
run : |
53
- mvn -B install -D skipTests --no-transfer-progress
54
47
cd tools/test-spring-boot-starter
55
48
mvn package -D skipTests --no-transfer-progress
56
49
java -jar target/test-spring-boot*.jar
70
63
runs-on : ${{ matrix.os }}
71
64
steps :
72
65
- uses : actions/checkout@v2
73
- - uses : microsoft/playwright-github-action@v1.5.0
66
+ - uses : microsoft/playwright-github-action@v1
74
67
- name : Install Media Pack
75
68
if : matrix.os == 'windows-latest'
76
69
shell : powershell
@@ -80,17 +73,11 @@ jobs:
80
73
with :
81
74
distribution : zulu
82
75
java-version : 8
83
- - name : Cache Maven packages
84
- uses : actions/cache@v2
85
- with :
86
- path : ~/.m2
87
- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
88
- restore-keys : ${{ runner.os }}-m2
89
76
- name : Download drivers
90
77
shell : bash
91
78
run : scripts/download_driver_for_all_platforms.sh
92
- - name : Build with Maven
93
- run : mvn -B package -D skipTests --no-transfer-progress
79
+ - name : Build & Install
80
+ run : mvn -B install -D skipTests --no-transfer-progress
94
81
- name : Run tests
95
82
run : mvn test --no-transfer-progress --fail-at-end
96
83
env :
@@ -106,23 +93,17 @@ jobs:
106
93
runs-on : ubuntu-latest
107
94
steps :
108
95
- uses : actions/checkout@v2
109
- - uses : microsoft/playwright-github-action@v1.5.0
96
+ - uses : microsoft/playwright-github-action@v1
110
97
- name : Set up JDK 17
111
98
uses : actions/setup-java@v2
112
99
with :
113
100
distribution : adopt
114
101
java-version : 17
115
- - name : Cache Maven packages
116
- uses : actions/cache@v2
117
- with :
118
- path : ~/.m2
119
- key : m2-${{ hashFiles('**/pom.xml') }}
120
- restore-keys : m2
121
102
- name : Download drivers
122
103
shell : bash
123
104
run : scripts/download_driver_for_all_platforms.sh
124
- - name : Build with Maven
125
- run : mvn -B package -D skipTests --no-transfer-progress
105
+ - name : Build & Install
106
+ run : mvn -B install -D skipTests --no-transfer-progress
126
107
- name : Run tests
127
108
run : mvn test --no-transfer-progress --fail-at-end
128
109
env :
@@ -132,7 +113,6 @@ jobs:
132
113
env :
133
114
BROWSER : ${{ matrix.browser }}
134
115
run : |
135
- mvn -B install -D skipTests --no-transfer-progress
136
116
cd tools/test-spring-boot-starter
137
117
mvn package -D skipTests --no-transfer-progress
138
118
java -jar target/test-spring-boot*.jar
0 commit comments