File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments