Skip to content

Commit 97a2cd3

Browse files
committed
add github actions to display test and dependabot
1 parent 549a89c commit 97a2cd3

2 files changed

Lines changed: 97 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
version: 2
2+
updates:
3+
# Maven dependencies
4+
- package-ecosystem: "maven"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
time: "09:00"
10+
labels:
11+
- "dependencies"
12+
- "maven"
13+
commit-message:
14+
prefix: "chore"
15+
include: "scope"
16+
groups:
17+
# Group Apache XMLBeans updates
18+
xmlbeans:
19+
patterns:
20+
- "org.apache.xmlbeans:*"
21+
# Group test dependencies
22+
test-dependencies:
23+
patterns:
24+
- "org.junit.*:*"
25+
- "org.mockito:*"
26+
# Group Apache HTTP Client updates
27+
apache-http:
28+
patterns:
29+
- "org.apache.httpcomponents:*"
30+
# Group BouncyCastle security libraries
31+
bouncycastle:
32+
patterns:
33+
- "org.bouncycastle:*"
34+
# Group logging dependencies
35+
logging:
36+
patterns:
37+
- "org.apache.logging.log4j:*"
38+
- "org.slf4j:*"
39+
40+
# GitHub Actions
41+
- package-ecosystem: "github-actions"
42+
directory: "/"
43+
schedule:
44+
interval: "weekly"
45+
day: "monday"
46+
time: "09:00"
47+
open-pull-requests-limit: 5
48+
labels:
49+
- "dependencies"
50+
- "github-actions"
51+
commit-message:
52+
prefix: "ci"
53+

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
name: Test on JDK ${{ matrix.java }}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
java: [ '21', '23' ]
15+
fail-fast: false
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up JDK ${{ matrix.java }}
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: ${{ matrix.java }}
25+
distribution: 'temurin'
26+
cache: 'maven'
27+
28+
- name: Run tests with Maven
29+
run: ./mvnw clean test --batch-mode --no-transfer-progress
30+
31+
- name: Upload test results
32+
if: always()
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: test-results-jdk-${{ matrix.java }}
36+
path: target/surefire-reports/
37+
38+
- name: Publish test report
39+
if: always()
40+
uses: dorny/test-reporter@v2
41+
with:
42+
name: Test Results (JDK ${{ matrix.java }})
43+
path: 'target/surefire-reports/TEST-*.xml'
44+
reporter: java-junit

0 commit comments

Comments
 (0)