From 59b3f3aaccb32b67038626912fbfdb0e3d02f482 Mon Sep 17 00:00:00 2001 From: Bernd Hufmann Date: Fri, 9 Feb 2024 20:57:58 -0500 Subject: [PATCH] releng: Add github workflow for continuous integration Add following workflow file: ci.yml Signed-off-by: Bernd Hufmann --- .github/workflows/ci.yml | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..4977a7a06 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,52 @@ +name: Continuous Integration + +on: + push: + branches: + - master + - stable-* + pull_request: + branches: + - master + - stable-* + +jobs: + build: + + runs-on: ubuntu-22.04 + timeout-minutes: 90 + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Set up Maven + uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5 + with: + maven-version: 3.9.5 + - name: Build with Maven + uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1 + with: + run: >- + mvn -B clean install + - name: Upload logs + uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: Build logs + path: | + */*tests/screenshots/*.jpeg + */*tests/target/work/data/.metadata/.log + - name: Upload test results + uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: Test results + path: | + */*/target/surefire-reports/*.xml