From a03edd3290f240dfefd521e3af63d8972985dc15 Mon Sep 17 00:00:00 2001 From: "Kasun M.Weerasekara" <98303334+Kasunm12@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:42:42 +0530 Subject: [PATCH 1/2] Delete .github/workflows directory --- .github/workflows/main.yml | 94 -------------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index d162c5a..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout the code - uses: actions/checkout@v2 - - - name: Upload html test report - uses: actions/upload-artifact@v2 - with: - name: lint.html - path: app/build/reports/lint-results-debug.html - - unit-test: - needs: [lint] - runs-on: ubuntu-latest - steps: - - name: Checkout the code - uses: actions/checkout@v2 - - - name: Run tests - run: ./gradlew test - - - name: Upload test report - uses: actions/upload-artifact@v2 - with: - name: unit_test_report - path: app/build/reports/tests/testDebugUnitTest/ - - instrumentation-test: - needs: [unit-test] - runs-on: macos-latest - steps: - - name: Checkout the code - uses: actions/checkout@v2 - - - name: Run espresso tests - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 29 - script: ./gradlew connectedCheck - - - name: Upload test report - uses: actions/upload-artifact@v2 - with: - name: instrumentation_test_report - path: app/build/reports/androidTests/connected/ - - static-code-analysis: - needs: [instrumentation-test] - runs-on: ubuntu-latest - steps: - - name: Checkout the code - uses: actions/checkout@v2 - - - name: set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: SonarCloud Scan - run: ./gradlew app:sonarqube -Dsonar.login=${{ secrets.SONAR_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - package: - needs: [static-code-analysis] - name: Generate APK - runs-on: ubuntu-latest - steps: - - name: Checkout the code - uses: actions/checkout@v2 - - - name: set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - - name: Build debug APK - run: ./gradlew assembleDebug --stacktrace - - - name: Upload APK - uses: actions/upload-artifact@v2 - with: - name: expense-manager.apk - path: app/build/outputs/apk/debug/app-debug.apk From 92286282b0c259838c2e7ed79621917bddc20878 Mon Sep 17 00:00:00 2001 From: "Kasun M.Weerasekara" <98303334+Kasunm12@users.noreply.github.com> Date: Mon, 30 Jan 2023 11:31:43 +0530 Subject: [PATCH 2/2] Create main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fc050d8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1 @@ +name: CI /CD