Commit f26ab9e 1 parent 4735fbf commit f26ab9e Copy full SHA for f26ab9e
File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : jpo-utils
2
+
3
+ on : [pull_request, push]
4
+
5
+ jobs :
6
+ build_intersection_api :
7
+ runs-on : ubuntu-latest
8
+ container :
9
+ image : maven:3.9.9-eclipse-temurin-21
10
+ options : --user root
11
+ steps :
12
+ - name : Checkout Repository
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Cache Maven packages
16
+ uses : actions/cache@v4
17
+ with :
18
+ path : ~/.m2
19
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/settings.xml') }}-${{ runner.os }}-java-21
20
+ restore-keys : |
21
+ ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ runner.os }}-java-21
22
+ ${{ runner.os }}-maven-${{ runner.os }}-java-21
23
+ ${{ runner.os }}-maven
24
+
25
+ - name : Install Dependencies
26
+ env :
27
+ MAVEN_GITHUB_TOKEN : ${{ secrets.MAVEN_GITHUB_TOKEN }}
28
+ MAVEN_GITHUB_ORG : ${{ github.repository_owner }}
29
+ run : |
30
+ cd $GITHUB_WORKSPACE/jpo-deduplicator/jpo-deduplicator
31
+ mvn clean install -DskipTests -s ./settings.xml
32
+ mvn dependency:go-offline -s ./settings.xml
33
+
34
+ - name : Run tests
35
+ env :
36
+ MAVEN_GITHUB_TOKEN : ${{ secrets.MAVEN_GITHUB_TOKEN }}
37
+ MAVEN_GITHUB_ORG : ${{ github.repository_owner }}
38
+ run : |
39
+ cd $GITHUB_WORKSPACE/jpo-deduplicator/jpo-deduplicator
40
+ mvn verify -s ./settings.xml
41
+
42
+ - name : Archive Test Results
43
+ uses : actions/upload-artifact@v4
44
+ with :
45
+ name : intersection-api-test-results
46
+ path : $GITHUB_WORKSPACE/jpo-deduplicator/jpo-deduplicator/target/surefire-reports
47
+
48
+ - name : Clean up
49
+ run : |
50
+ rm -rf $GITHUB_WORKSPACE/jpo-deduplicator/jpo-deduplicator/target
You can’t perform that action at this time.
0 commit comments