Skip to content

CI workflow with Github Actions #3

CI workflow with Github Actions

CI workflow with Github Actions #3

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
types: [ opened, synchronize, reopened ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
setup:
name: test with JDK=${{matrix.java-dist}}-${{ matrix.java-ver }} OS=${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
java-ver: [ 21, 17, 11, 8 ]
java-dist: [ 'temurin']
runs-on: ${{ matrix.os }}
steps:
- name: checkout code
uses: actions/checkout@v4
- name: set up JDK ${{ matrix.java-ver }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-ver }}
distribution: ${{ matrix.java-dist }}
# see: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: setup gradle
uses: gradle/actions/setup-gradle@v4 # v4.0.0
with:
gradle-version: 8.5
- name: build
run: ./gradlew --no-daemon -PmaxParallelForks=1 build
- name: integration test
run: ./gradlew --no-daemon -PmaxParallelForks=1 clean integrationTest