From 586078c5dff159bb0b65eceffe0d957a06c335ad Mon Sep 17 00:00:00 2001 From: Mahmoud Mabrok Fouad Date: Sat, 26 Oct 2024 15:29:08 +0300 Subject: [PATCH] ci: importe android ci --- .github/workflows/android ci.yml | 27 +++++++++++++++++++++++++++ .github/workflows/prepare.yml | 29 ----------------------------- 2 files changed, 27 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/android ci.yml delete mode 100644 .github/workflows/prepare.yml diff --git a/.github/workflows/android ci.yml b/.github/workflows/android ci.yml new file mode 100644 index 0000000..097dd3d --- /dev/null +++ b/.github/workflows/android ci.yml @@ -0,0 +1,27 @@ +name: Android CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + + - name: lint + run: ./gradlew ktlint + + - name: code quality with deteckt + run: ./gradlw deteckt + + - name: test + run: ./gradlw test + diff --git a/.github/workflows/prepare.yml b/.github/workflows/prepare.yml deleted file mode 100644 index ecc9009..0000000 --- a/.github/workflows/prepare.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Android CI - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up JDK - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: temurin - - - name: Set up Android SDK - uses: android-actions/setup-android@v2 - with: - android-sdk-version: 34 - - - name: make gradlew executable - run: chmod +x gradlew - - - name: BUild - run: ./gradlew build -