From c35ff0ef6b9c3a0d43361ee55bf3ffff9458ebda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lamarque?= Date: Fri, 27 Oct 2023 15:51:37 +0200 Subject: [PATCH 1/3] chore: make 'gradlew' executable --- gradlew | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 gradlew diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 From 9bc04d46ec5aad9d47b65b017706da93fdf15018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lamarque?= Date: Fri, 27 Oct 2023 16:08:49 +0200 Subject: [PATCH 2/3] automation: add integration workflow --- .github/workflows/integration.yml | 59 +++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..9d78b2e --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,59 @@ +# Copyright 2023 Loïc Lamarque. All rights reserved. + +name: Integration +on: + pull_request: + branches: [ main ] + paths: + - '**gradle*' + - '**.kt*' + - .github/workflows/integration.yml + push: + branches: [ main ] + paths: + - '**gradle*' + - '**.kt*' + - .github/workflows/integration.yml + workflow_dispatch: +jobs: + # ---------- Stage 1 ---------- + validate-wrapper: + name: Validate Gradle wrapper + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4.0.0 + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@v1.0.6 + # ---------- Stage 2 ---------- + dependencies: + name: Submit dependencies to GitHub + needs: validate-wrapper + if: github.event_name == 'push' + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v4.0.0 + - name: Submit dependencies to GitHub + uses: mikepenz/gradle-dependency-submission@v0.9.1 + with: + gradle-build-configuration: runtimeClasspath + fail-on-error: true + check: + name: Run checks + needs: validate-wrapper + runs-on: ubuntu-latest + permissions: read-all + steps: + - name: Checkout code + uses: actions/checkout@v4.0.0 + - name: Setup Java & Gradle + uses: actions/setup-java@v3.11.0 + with: + java-version: 17 + distribution: temurin + cache: gradle + - name: Run all checks + run: ./gradlew --no-daemon --quiet :check From 91b223f38257b375af510e24ab7900d9ae948b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lamarque?= Date: Fri, 27 Oct 2023 16:16:12 +0200 Subject: [PATCH 3/3] fix: correct triggers of integration workflow --- .github/workflows/integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 9d78b2e..b43f14a 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -3,13 +3,13 @@ name: Integration on: pull_request: - branches: [ main ] + branches: [ master, develop ] paths: - '**gradle*' - '**.kt*' - .github/workflows/integration.yml push: - branches: [ main ] + branches: [ master, develop ] paths: - '**gradle*' - '**.kt*'