mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
50ec92397c
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
67 lines
2.3 KiB
YAML
67 lines
2.3 KiB
YAML
name: Resolve itest dependencies
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 19 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
resolve:
|
|
name: Resolve itest dependencies
|
|
runs-on: 'ubuntu-24.04'
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
# typical duration is ~15min, set twice the amount as limit (default is 6h)
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Java 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Set up Cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: |
|
|
~/.m2/repository
|
|
!~/.m2/repository/org/openhab
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
|
|
- name: Build and resolve dependencies
|
|
id: build
|
|
# call mvnw directly instead of the repo's log-filtering wrapper script,
|
|
# use more cores, safe to do so as we skip tests (which might depend on load)
|
|
run: './mvnw verify -B -T 2.5C -U -DskipChecks -DskipTests -DwithResolver -Dmarkdownlint.skip=true -DspotlessCheck.skip=true'
|
|
env:
|
|
MAVEN_OPTS: >-
|
|
-Xmx8g
|
|
-Dmaven.wagon.http.retryHandler.count=5
|
|
-Dmaven.wagon.httpconnectionManager.ttlSeconds=25
|
|
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
|
|
|
- name: Show Resolver Status
|
|
run: |
|
|
git branch -v
|
|
git status
|
|
git diff
|
|
|
|
- name: Open PR if changed
|
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # 8.1.1
|
|
with:
|
|
commit-message: "Resolve itest dependencies"
|
|
title: "Resolve itest dependencies"
|
|
body: "PR created by workflow run (resolver.yml)\n\nCI is disabled by default for PRs created by workflow runs. After reviewing the changes, use Close and Reopen to run the CI."
|
|
branch: "gha/resolver/${{ github.ref_name }}"
|
|
author: openhab-bot <bot@openhab.org>
|
|
committer: openhab-bot <bot@openhab.org>
|
|
delete-branch: true
|
|
# labels: infrastructure
|
|
signoff: true
|