Skip to content

Commit a8495ee

Browse files
committed
chore: test builds
1 parent f1f90ae commit a8495ee

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- "release/**"
8+
9+
permissions:
10+
contents: read
11+
checks: write
12+
pull-requests: write
13+
14+
jobs:
15+
build-and-test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up JDK
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: "21"
25+
distribution: "corretto"
26+
cache: "maven"
27+
28+
- name: Cache Maven packages
29+
uses: actions/cache@v4
30+
with:
31+
path: |
32+
~/.m2/repository
33+
!~/.m2/repository/org/devgateway/tcdi
34+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
35+
restore-keys: |
36+
${{ runner.os }}-maven-
37+
38+
- name: Build and Test
39+
run: mvn -B verify -Dcheckstyle.skip=true -Dtest='!**/DatasetClientTest' --file pom.xml
40+
41+
- name: Upload Build Artifacts
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: build-artifacts
45+
path: |
46+
**/target/*.jar
47+
retention-days: 7

0 commit comments

Comments
 (0)