forked from Accenture/mercury-composable
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 746 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (30 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
name: Build & Unit Tests (Java 21)
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Build and run unit tests
run: mvn --batch-mode --no-transfer-progress verify
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: surefire-reports
path: '**/target/surefire-reports/*.xml'
retention-days: 7