Skip to content

Commit

Permalink
Add multi-os workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tortmayr committed Aug 21, 2024
1 parent 55f2a88 commit a345333
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: [17, 21]

steps:
- name: Setup Maven and Java
uses: s4u/setup-maven-action@2f53a7669c7543a045d0bb6c92436df0c5a726f8 #v1.14.0
with:
java-distribution: "temurin"
java-version: ${{ matrix.java-version }}
- name: Build (P2)
run: mvn clean verify -Pp2 -B -Dcheckstyle.skip -DskipTests
shell: bash
- name: Build & Test (M2)
run: mvn clean verify -Pm2 -B -Dcheckstyle.skip
shell: bash
- name: Test Summary
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "tests/**/surefire-reports/*.xml"
if: always()

0 comments on commit a345333

Please sign in to comment.