Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a345333

Browse files
committed
Add multi-os workflow
1 parent 55f2a88 commit a345333

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: Build and Test
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
java-version: [17, 21]
18+
19+
steps:
20+
- name: Setup Maven and Java
21+
uses: s4u/setup-maven-action@2f53a7669c7543a045d0bb6c92436df0c5a726f8 #v1.14.0
22+
with:
23+
java-distribution: "temurin"
24+
java-version: ${{ matrix.java-version }}
25+
- name: Build (P2)
26+
run: mvn clean verify -Pp2 -B -Dcheckstyle.skip -DskipTests
27+
shell: bash
28+
- name: Build & Test (M2)
29+
run: mvn clean verify -Pm2 -B -Dcheckstyle.skip
30+
shell: bash
31+
- name: Test Summary
32+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
33+
with:
34+
paths: "tests/**/surefire-reports/*.xml"
35+
if: always()
36+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /