Skip to content

Commit 8a1fc54

Browse files
committed
Migrates from circleci to github actions
1 parent 867dc4e commit 8a1fc54

File tree

2 files changed

+37
-42
lines changed

2 files changed

+37
-42
lines changed

.circleci/config.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/maven.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Build
5+
6+
on:
7+
push:
8+
branches: [ main, 3.1.x ]
9+
pull_request:
10+
branches: [ main, 3.1.x ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK
20+
uses: actions/setup-java@v2
21+
with:
22+
distribution: 'temurin'
23+
java-version: '17'
24+
- name: Cache local Maven repository
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.m2/repository
28+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: |
30+
${{ runner.os }}-maven-
31+
- name: Build with Maven
32+
run: ./mvnw clean install -B -U -Pspring -Dmaven.test.redirectTestOutputToFile=true
33+
- name: Publish Test Report
34+
uses: mikepenz/action-junit-report@v2
35+
if: always() # always run even if the previous step fails
36+
with:
37+
report_paths: '**/surefire-reports/TEST-*.xml'

0 commit comments

Comments
 (0)