Skip to content

Commit 5657883

Browse files
Copilotrvosa
andcommitted
Add GitHub Actions CI/CD workflow for treebase-core
Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com>
1 parent 81485ee commit 5657883

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI - Build and Test
2+
3+
on:
4+
push:
5+
branches: [ main, master, develop ]
6+
pull_request:
7+
branches: [ main, master, develop ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-test:
12+
name: Build and Test treebase-core
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 8
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '8'
23+
distribution: 'temurin'
24+
cache: 'maven'
25+
26+
- name: Build treebase-core
27+
run: mvn -B clean compile -f treebase-core/pom.xml
28+
29+
- name: Run tests
30+
run: mvn -B test -f treebase-core/pom.xml
31+
32+
- name: Publish Test Report
33+
uses: dorny/test-reporter@v1
34+
if: always()
35+
with:
36+
name: JUnit Test Results
37+
path: treebase-core/target/surefire-reports/*.xml
38+
reporter: java-junit
39+
fail-on-error: true

0 commit comments

Comments
 (0)