diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index 36997f7..0000000 --- a/.cirrus.yml +++ /dev/null @@ -1,7 +0,0 @@ -container: - image: maven:3.9.7-eclipse-temurin-17 - -build_task: - maven_cache: - folder: ~/.m2/repository - build_script: ./build.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9b290f2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + schedule: + # Run every day at 4:17 + - cron: "17 4 * * *" + push: + branches: + - master + - branch-* + - dogfood-* + pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} + +jobs: + build: + name: Build + runs-on: github-ubuntu-latest-s + permissions: + contents: write + steps: + - name: Checkout source code + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + with: + version: 2025.7.12 + tool_versions: | + maven: 3.9 + java: 17 + - name: Run build script + run: + bash ./build.sh diff --git a/.github/workflows/pr-cleanup.yml b/.github/workflows/pr-cleanup.yml new file mode 100644 index 0000000..a05b2e5 --- /dev/null +++ b/.github/workflows/pr-cleanup.yml @@ -0,0 +1,11 @@ +name: Cleanup PR Resources +on: + pull_request: + types: [closed] +jobs: + cleanup: + runs-on: github-ubuntu-latest-s + permissions: + actions: write + steps: + - uses: SonarSource/ci-github-actions/pr_cleanup@v1 diff --git a/build.sh b/build.sh index 1bdfb6f..f9f1043 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash RunMaven() { - typeset MAVEN_CMD="mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package" + typeset MAVEN_CMD="mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package --batch-mode" typeset RETURN_CODE echo $MAVEN_CMD