Skip to content

Commit 5b6cbbf

Browse files
authored
Merge pull request #119 from mbien/dependency_updates_2
minor dependency updates + test-summary workflow action
2 parents 4b68db5 + f60e75f commit 5b6cbbf

File tree

7 files changed

+59
-51
lines changed

7 files changed

+59
-51
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,20 @@ jobs:
3030

3131
steps:
3232
- name: Set up JDK 17
33-
uses: actions/setup-java@v2
33+
uses: actions/setup-java@v3
3434
with:
3535
java-version: 17
3636
distribution: 'zulu'
3737

3838
- name: Checkout Project
39-
uses: actions/checkout@v2
39+
uses: actions/checkout@v3
40+
with:
41+
persist-credentials: false
42+
submodules: false
4043

4144
# Initializes the CodeQL tools for scanning.
4245
- name: Initialize CodeQL
43-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v2
4447
with:
4548
languages: ${{ matrix.language }}
4649
config-file: ./.github/codeql/codeql-config.yml
@@ -49,4 +52,4 @@ jobs:
4952
run: mvn -DskipTests=true -V -ntp install
5053

5154
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v1
55+
uses: github/codeql-action/analyze@v2

.github/workflows/main.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
name: Apache Roller
1919

20-
# junit report action
21-
# https://github.com/marketplace/actions/junit-report-action
22-
2320
on:
2421
push:
2522
branches: [master]
@@ -30,45 +27,50 @@ jobs:
3027
build-test:
3128
name: Build+Test on Linux/JDK ${{ matrix.java }}
3229
runs-on: ubuntu-latest
30+
timeout-minutes: 30
3331

3432
strategy:
3533
fail-fast: false
3634
matrix:
37-
java: [ '11', '17', '18' ]
35+
java: [ '11', '17', '20' ]
3836

3937
steps:
4038
- name: Set up JDK ${{ matrix.java }}
41-
uses: actions/setup-java@v2
39+
uses: actions/setup-java@v3
4240
with:
4341
java-version: ${{ matrix.java }}
4442
distribution: 'zulu'
4543

44+
- name: Setup Xvfb
45+
run: |
46+
echo "DISPLAY=:99.0" >> $GITHUB_ENV
47+
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
48+
4649
- name: Checkout Project
4750
uses: actions/checkout@v3
51+
with:
52+
persist-credentials: false
53+
submodules: false
4854

4955
- name: Build Roller and run JUnit Tests
5056
run: mvn -V -ntp install
5157

5258
- name: Run Integration Tests
5359
run: |
5460
cd it-selenium
55-
bash -c "wget -c https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz -O - | tar -xz"
56-
mvn -V -ntp install
61+
mvn -V -ntp -Dwebdriver.gecko.driver=$GECKOWEBDRIVER/geckodriver install
5762
58-
# TODO: needs submodule workaround since apache does not allow third party actions anymore
59-
# - name: Publish JUnit Report
60-
# uses: mikepenz/action-junit-report@v3
61-
# if: always()
62-
# with:
63-
# check_name: JUnit Reports for Linux/JDK ${{ matrix.java }}
64-
# report_paths: 'app/target/surefire-reports/TEST-*.xml'
65-
#
66-
# - name: Publish IT Report
67-
# uses: mikepenz/action-junit-report@v3
68-
# if: always()
69-
# with:
70-
# check_name: IT Reports for Linux/JDK ${{ matrix.java }}
71-
# report_paths: 'it-selenium/target/failsafe-reports/TEST-*.xml'
63+
- name: Publish JUnit Report
64+
uses: test-summary/action@v2
65+
if: always()
66+
with:
67+
paths: "app/target/surefire-reports/TEST-*.xml"
68+
69+
- name: Publish IT Report
70+
uses: test-summary/action@v2
71+
if: always()
72+
with:
73+
paths: "it-selenium/target/failsafe-reports/TEST-*.xml"
7274

7375
# only on integration and only once in this matrix
7476
- name: Upload Dev Build on Integration

app/pom.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,24 @@ limitations under the License.
3939
<java-mail.version>1.4.7</java-mail.version>
4040
<jstl.version>1.2</jstl.version>
4141
<angular.version>1.7.8</angular.version>
42-
<ant.version>1.10.12</ant.version>
43-
<asm.version>9.3</asm.version>
42+
<ant.version>1.10.13</ant.version>
43+
<asm.version>9.4</asm.version>
4444
<bouncycastle.version>1.70</bouncycastle.version>
4545
<commons-validator.version>1.7</commons-validator.version>
4646
<commons-beanutils.version>1.9.4</commons-beanutils.version>
4747
<commons-codec.version>1.15</commons-codec.version>
48-
<eclipse-link.version>3.0.2</eclipse-link.version>
48+
<eclipse-link.version>4.0.1</eclipse-link.version>
4949
<guice.version>5.1.0</guice.version>
50-
<log4j2.version>2.17.2</log4j2.version>
51-
<lucene.version>9.2.0</lucene.version>
50+
<log4j2.version>2.20.0</log4j2.version>
51+
<lucene.version>9.5.0</lucene.version>
5252
<oauth-core.version>20100527</oauth-core.version>
53-
<maven-war.version>3.2.3</maven-war.version>
53+
<maven-war.version>3.3.2</maven-war.version>
5454
<maven-surefire.version>2.22.2</maven-surefire.version>
5555
<maven-antrun.version>1.0b3</maven-antrun.version>
56-
<rome.version>1.18.0</rome.version>
56+
<rome.version>1.19.0</rome.version> <!-- locked in place since next version removes popono -->
5757
<slf4j.version>1.7.36</slf4j.version>
58-
<spring.version>5.3.20</spring.version>
59-
<spring.security.version>5.7.1</spring.security.version>
58+
<spring.version>5.3.25</spring.version>
59+
<spring.security.version>5.8.2</spring.security.version>
6060
<struts.version>2.5.29</struts.version>
6161
<velocity.version>2.3</velocity.version>
6262
<webjars.version>1.6</webjars.version>
@@ -266,13 +266,13 @@ limitations under the License.
266266
<dependency>
267267
<groupId>org.webjars</groupId>
268268
<artifactId>jquery</artifactId>
269-
<version>3.6.0</version>
269+
<version>3.6.1</version>
270270
</dependency>
271271

272272
<dependency>
273273
<groupId>org.webjars</groupId>
274274
<artifactId>jquery-ui</artifactId>
275-
<version>1.13.1</version>
275+
<version>1.13.2</version>
276276
</dependency>
277277

278278
<dependency>
@@ -284,7 +284,7 @@ limitations under the License.
284284
<dependency>
285285
<groupId>org.webjars</groupId>
286286
<artifactId>jquery-validation</artifactId>
287-
<version>1.19.3</version>
287+
<version>1.19.5</version>
288288
</dependency>
289289

290290
<dependency>
@@ -365,7 +365,7 @@ limitations under the License.
365365
<dependency>
366366
<groupId>org.apache.commons</groupId>
367367
<artifactId>commons-text</artifactId>
368-
<version>1.9</version>
368+
<version>1.10.0</version>
369369
</dependency>
370370

371371
<dependency>
@@ -812,7 +812,7 @@ limitations under the License.
812812
<plugin>
813813
<groupId>org.codehaus.mojo</groupId>
814814
<artifactId>buildnumber-maven-plugin</artifactId>
815-
<version>1.4</version>
815+
<version>3.0.0</version>
816816
<executions>
817817
<execution>
818818
<phase>validate</phase>

app/src/main/webapp/WEB-INF/jsps/tiles/head.jsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ You can override it with your own file via WEB-INF/tiles-def.xml
55

66
<%@ include file="/WEB-INF/jsps/taglibs-struts2.jsp" %>
77

8-
<script src="<s:url value='/webjars/jquery/3.6.0/jquery.min.js' />"></script>
8+
<script src="<s:url value='/webjars/jquery/3.6.1/jquery.min.js' />"></script>
99

10-
<script src="<s:url value='/webjars/jquery-ui/1.13.1/jquery-ui.min.js' />"></script>
11-
<link href="<s:url value='/webjars/jquery-ui/1.13.1/jquery-ui.css' />" rel="stylesheet" />
10+
<script src="<s:url value='/webjars/jquery-ui/1.13.2/jquery-ui.min.js' />"></script>
11+
<link href="<s:url value='/webjars/jquery-ui/1.13.2/jquery-ui.css' />" rel="stylesheet" />
1212

13-
<script src="<s:url value='/webjars/jquery-validation/1.19.3/jquery.validate.min.js' />"></script>
13+
<script src="<s:url value='/webjars/jquery-validation/1.19.5/jquery.validate.min.js' />"></script>
1414

1515
<link href="<s:url value='/webjars/bootstrap/3.4.1/css/bootstrap.min.css' />" rel="stylesheet" />
1616
<link href="<s:url value='/webjars/bootstrap/3.4.1/css/bootstrap-theme.min.css' />" rel="stylesheet" />

app/src/test/java/org/apache/roller/weblogger/business/CommentTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
import java.io.PrintWriter;
2929
import java.io.StringWriter;
3030
import java.util.List;
31+
import org.junit.jupiter.api.AfterEach;
32+
import org.junit.jupiter.api.BeforeEach;
3133

3234
import static org.junit.jupiter.api.Assertions.*;
3335

@@ -48,6 +50,7 @@ public class CommentTest {
4850
/**
4951
* All tests in this suite require a user, weblog, and an entry.
5052
*/
53+
@BeforeEach
5154
public void setUp() throws Exception {
5255

5356
// setup weblogger
@@ -63,7 +66,8 @@ public void setUp() throws Exception {
6366
throw new Exception("Test setup failed", ex);
6467
}
6568
}
66-
69+
70+
@AfterEach
6771
public void tearDown() throws Exception {
6872

6973
try {

app/src/test/java/org/apache/roller/weblogger/business/MediaFileTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.io.File;
3333
import java.sql.Timestamp;
3434
import java.util.*;
35+
import org.junit.jupiter.api.BeforeEach;
3536

3637
import static org.junit.jupiter.api.Assertions.*;
3738

@@ -47,13 +48,11 @@ public class MediaFileTest {
4748
public MediaFileTest() {
4849
}
4950

51+
@BeforeEach
5052
public void setUp() throws Exception {
5153
TestUtils.setupWeblogger();
5254
}
5355

54-
public void tearDown() throws Exception {
55-
}
56-
5756
/**
5857
* Test creation of directory by path
5958
*/

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ limitations under the License.
4444
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
4545
<derby.version>10.11.1.1</derby.version>
4646
<jaxb.version>2.3.1</jaxb.version>
47-
<jetty.version>10.0.5</jetty.version>
47+
<jetty.version>10.0.14</jetty.version>
4848
<roller.version>6.1.2-SNAPSHOT</roller.version>
4949
</properties>
5050

@@ -59,7 +59,7 @@ limitations under the License.
5959
<plugin>
6060
<groupId>org.apache.maven.plugins</groupId>
6161
<artifactId>maven-compiler-plugin</artifactId>
62-
<version>3.8.1</version>
62+
<version>3.11.0</version>
6363
<configuration>
6464
<release>11</release>
6565
<fork>true</fork>
@@ -90,7 +90,7 @@ limitations under the License.
9090
<plugin>
9191
<groupId>org.codehaus.mojo</groupId>
9292
<artifactId>versions-maven-plugin</artifactId>
93-
<version>2.8.1</version>
93+
<version>2.15.0</version>
9494
<configuration>
9595
<rulesUri>file:version-rules.xml</rulesUri>
9696
</configuration>
@@ -113,7 +113,7 @@ limitations under the License.
113113
<dependency>
114114
<groupId>org.junit.jupiter</groupId>
115115
<artifactId>junit-jupiter-engine</artifactId>
116-
<version>5.8.2</version>
116+
<version>5.9.2</version>
117117
<scope>test</scope>
118118
</dependency>
119119
</dependencies>

0 commit comments

Comments
 (0)