Skip to content

Commit 125007b

Browse files
committed
Add workflows.
Signed-off-by: Radoslav Husar <radosoft@gmail.com>
1 parent 5bd0aa0 commit 125007b

4 files changed

Lines changed: 85 additions & 0 deletions

File tree

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*]
2+
charset=utf-8
3+
end_of_line=lf
4+
insert_final_newline=true
5+
indent_style=space
6+
indent_size=4

.editorconfig-checker.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Disable": {
3+
"IndentSize": true
4+
}
5+
}

.github/workflows/editorconfig.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: EditorConfig Checker
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
pull_request:
7+
branches:
8+
- '*'
9+
jobs:
10+
editorconfig-checker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v7
15+
- name: Setup EditorConfig Checker
16+
uses: editorconfig-checker/action-editorconfig-checker@v2
17+
- name: Run EditorConfig Checker
18+
run: editorconfig-checker

.github/workflows/maven.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Maven
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
merge_group:
11+
types:
12+
- checks_requested
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
build-and-test:
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
matrix:
23+
os:
24+
- macos-latest
25+
- ubuntu-latest
26+
- windows-latest
27+
# Keep this list as: all supported LTS JDKs (>= 17, the project's minimum) and the latest GA JDK.
28+
# Reference: https://adoptium.net/support/
29+
java:
30+
- 17
31+
- 21
32+
- 25
33+
- 26
34+
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v7
38+
39+
- name: Set up JDK ${{ matrix.java }}
40+
uses: actions/setup-java@v5
41+
with:
42+
distribution: temurin
43+
java-version: ${{ matrix.java }}
44+
cache: maven
45+
46+
- name: Build and Test with Maven
47+
run: mvn --batch-mode --no-transfer-progress verify
48+
49+
- name: Upload Test Reports
50+
uses: actions/upload-artifact@v7
51+
if: failure()
52+
with:
53+
name: ${{ matrix.os }}-${{ matrix.java }}-test-reports
54+
path: |
55+
**/surefire-reports/*
56+
**/failsafe-reports/*

0 commit comments

Comments
 (0)