diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dde2970 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - develop + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + test: + name: JDK ${{ matrix.jdk }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + jdk: [ 8, 11, 17 ] + os: [ ubuntu-20.04 ] + fail-fast: true + steps: + - uses: actions/checkout@v4 + - name: Set up JDK ${{ matrix.jdk }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.jdk }} + distribution: 'temurin' + cache: 'maven' + - name: Update apt-get + run: sudo apt-get update + - name: Run All Test + run: mvn clean verify diff --git a/pom.xml b/pom.xml index 055dd0a..fdd35ca 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,20 @@ UTF-8 + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + 8 + 8 + + + + + org.testcontainers