From 476ee2aa969582d804536fba534c4bb07bbf55b6 Mon Sep 17 00:00:00 2001 From: dev Date: Mon, 19 Feb 2024 18:12:26 +0200 Subject: [PATCH] Updated version of Github Workflow Actions, trigger on push events --- .github/workflows/detekt.yml | 4 ---- .github/workflows/main.yml | 21 +++++++++------------ 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index 760d631..931ea57 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -1,9 +1,5 @@ on: push: - paths-ignore: - - '.github/**' - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: jobs: detekt-all: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7032703..19b3241 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,11 +2,8 @@ name: CI Build & Tests & Artifacts on: push: - paths-ignore: - - '.github/**' - branches: [ "main" ] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + branches: + - main jobs: unit-test: @@ -22,7 +19,7 @@ jobs: cache-read-only: false - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4.0.0 with: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '17' @@ -35,7 +32,7 @@ jobs: run: ./gradlew test - name: Upload Unit Test Report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.1 with: name: unit-test-report path: app/build/reports/unitTests/tests/testDebugUnitTest @@ -54,7 +51,7 @@ jobs: cache-read-only: false - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4.0.0 with: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '17' @@ -64,7 +61,7 @@ jobs: run: ./gradlew assembleDebug - name: Upload Debug APK - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.1 with: name: debug-apk path: app/build/outputs/apk/debug/*.apk @@ -83,7 +80,7 @@ jobs: cache-read-only: false - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4.0.0 with: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '17' @@ -94,13 +91,13 @@ jobs: ./gradlew assembleRelease ./gradlew bundleRelease - name: Assemble Release APK - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.1 with: name: app-release.apk path: app/build/outputs/apk/release/app-release-unsigned.apk - name: Upload AAB Bundle - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.1 with: name: app-release.aab path: app/build/outputs/bundle/release/app-release.aab