File tree Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Shared CI Workflow
2
+
3
+ inputs :
4
+ java_version :
5
+ description : ' The Java version to use.'
6
+ required : true
7
+ java_distribution :
8
+ description : ' The Java distribution to use.'
9
+ required : false
10
+ default : ' temurin'
11
+
12
+ runs :
13
+ using : composite
14
+ steps :
15
+ - name : Setup Java
16
+ uses : actions/setup-java@v4
17
+ with :
18
+ distribution : ${{ inputs.java_distribution }}
19
+ java-version : ${{ inputs.java_version }}
20
+
21
+ - name : Setup DynamoDB Service
22
+ shell : bash
23
+ run : |
24
+ sudo docker run -d -p 8000:8000 amazon/dynamodb-local
25
+
26
+ - name : Restore Dependencies
27
+ shell : bash
28
+ id : restore
29
+ run : ./gradlew dependencies
30
+
31
+ - name : Build Jar
32
+ shell : bash
33
+ id : buildjar
34
+ run : ./gradlew jar
35
+
36
+ - name : Run Tests
37
+ if : steps.buildjar.outcome == 'success'
38
+ shell : bash
39
+ run : ./gradlew test
Original file line number Diff line number Diff line change
1
+ name : Build and Test
2
+
3
+ on :
4
+ push :
5
+ branches : [main, feat/**, abarker/**]
6
+ paths-ignore :
7
+ - ' **.md' # Do not need to run CI for markdown changes.
8
+ pull_request :
9
+ branches : [main, feat/**]
10
+ paths-ignore :
11
+ - ' **.md'
12
+
13
+ jobs :
14
+ build-and-test :
15
+ runs-on : ubuntu-20.04
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+
19
+ - name : Shared CI Steps
20
+ uses : ./.github/actions/ci
21
+ with :
22
+ java_version : 8
You can’t perform that action at this time.
0 commit comments