Skip to content

Commit

Permalink
Add CI for sample Java applications (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
KodaiD authored Oct 11, 2024
1 parent 8b97cd3 commit 2f63061
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build-with-various-java-versions:
strategy:
matrix:
version: [8, 11, 17, 21]
project:
- 'microservice-transaction-sample'
- 'multi-storage-transaction-sample'
- 'scalardb-kotlin-sample'
- 'scalardb-sample'
- 'scalardb-sql-jdbc-sample'
- 'spring-data-microservice-transaction-sample'
- 'spring-data-multi-storage-transaction-sample'
- 'spring-data-sample'
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle Wrapper
working-directory: ${{ matrix.project }}
run: ./gradlew build

0 comments on commit 2f63061

Please sign in to comment.