Skip to content

Commit cd0442e

Browse files
committed
Add CI for sample Java applications
1 parent 8b97cd3 commit cd0442e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-with-various-java-version:
11+
strategy:
12+
matrix:
13+
version: [8, 11, 17, 21]
14+
project:
15+
- 'microservice-transaction-sample'
16+
- 'multi-storage-transaction-sample'
17+
- 'scalardb-kotlin-sample'
18+
- 'scalardb-sample'
19+
- 'scalardb-sql-jdbc-sample'
20+
- 'spring-data-microservice-transaction-sample'
21+
- 'spring-data-multi-storage-transaction-sample'
22+
- 'spring-data-sample'
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up JDK ${{ matrix.version }}
30+
uses: actions/setup-java@v4
31+
with:
32+
java-version: ${{ matrix.version }}
33+
distribution: 'temurin'
34+
35+
- name: Setup Gradle
36+
uses: gradle/actions/setup-gradle@v4
37+
38+
- name: Build with Gradle Wrapper
39+
working-directory: ${{ matrix.project }}
40+
run: ./gradlew build

0 commit comments

Comments
 (0)