From 5bc6c1699b6f1d4fe51dc743fa6073e8e824bfbd Mon Sep 17 00:00:00 2001 From: daragu Date: Fri, 7 Jun 2024 14:16:39 +0800 Subject: [PATCH] [Infra] Support GitHub Action build the xtable project --- .github/workflows/mvn-ci-build.yml | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/mvn-ci-build.yml diff --git a/.github/workflows/mvn-ci-build.yml b/.github/workflows/mvn-ci-build.yml new file mode 100644 index 000000000..f65bbd0a3 --- /dev/null +++ b/.github/workflows/mvn-ci-build.yml @@ -0,0 +1,46 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +name: Maven CI Build + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ !contains(github.ref, 'main') }} + +on: + push: + branches: + - "main" + + pull_request: + branches: + - "main" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + + - name: Build all module with Maven + run: mvn clean install -ntp -B