This is an automated email from the ASF dual-hosted git repository. alien11689 pushed a commit to branch ARIES-2254-run-gh-actions-and-dependabot in repository https://gitbox.apache.org/repos/asf/aries-typedevent.git
commit 321600d3f9ad9052ae5a0d65666168eb77f0e7da Author: Dominik Przybysz <[email protected]> AuthorDate: Mon Nov 30 21:14:38 2026 +0100 ARIES-2254: Run GH actions and dependabot --- .github/dependabot.yaml | 29 ++++++++++++++++++++++ .github/workflows/build.yml | 60 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..1408a9b --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,29 @@ +# Licensed 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. + +# GitHub Dependabot configuration file + +version: 2 +updates: + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + # Maintain dependencies for maven + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 10 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..997b511 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,60 @@ +# Licensed 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: Build + +on: + pull_request: + branches: + - 'main' + push: + branches: + - 'main' + +env: + LC_ALL: en_US.UTF-8 + +jobs: + JDKxx_Matrix: + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + java: [ 17, 21, 25 ] + os: [ ubuntu-latest ] + name: JDK${{ matrix.java }} ${{ matrix.os }} + runs-on: ${{ matrix.os }} + steps: + - name: Git Checkout + uses: actions/checkout@v7 + - name: Set up Java + uses: actions/setup-java@v5 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + - name: Build all + shell: bash + run: ./mvnw -U -e -B -ntp clean install + - name: Check for dirty workspace + # When dependency is updated then the tck bndruns may have updated version ranges + # If that happends we want to have it explicitly committed to the repository. + shell: bash + run: | + DIRTY=$(git status --porcelain) + if [ -n "$DIRTY" ]; then + echo "::error title=Dirty workspace::Build modified files. Please run the build locally and commit all the changes." + echo "$DIRTY" | while IFS= read -r line; do + file="${line:3}" + echo "::error file=$file,title=Unexpected change::This file was modified or created by the build" + done + exit 1 + fi
