diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..20b272de --- /dev/null +++ b/.github/workflows/ci.yml @@ -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