File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-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+ strategy :
16+ matrix :
17+ os : [ubuntu-22.04]
18+ javaversion : [8, 11, 17, 19]
19+ runs-on : ${{ matrix.os }}
20+ steps :
21+ - uses : actions/checkout@v3
22+
23+ - name : Shared CI Steps
24+ uses : ./.github/actions/ci
25+ with :
26+ java_version : ${{ matrix.javaversion }}
You can’t perform that action at this time.
0 commit comments