From 1eb3620353c5179972afaf8e2035a206dbff1385 Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Mon, 24 Jun 2024 10:20:00 -0700 Subject: [PATCH 1/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c6fb181 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: Android-ci + +on: + push: + branches: + - "*" + pull_request: + branches: + - master + +env: + ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} + API_KEY: ${{ secrets.API_KEY }} + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew dependencies + - name: Test + run: ./gradlew test \ No newline at end of file From a7eb4f5a06c683b940c4523c170f08b33dc7d41f Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Mon, 24 Jun 2024 10:51:51 -0700 Subject: [PATCH 2/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6fb181..17a0e32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,12 +21,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: gradle + - my_android_job: + runs-on: ubuntu-22.04 # Works also with self hosted runner supporting docker + container: + image: docker://fabernovel/android:api-29-v1.1.0 - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle From 9dda0c0763a0e6cc88753fa38faa1d76a8c56654 Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Mon, 24 Jun 2024 12:52:23 -0700 Subject: [PATCH 3/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17a0e32..beffbc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,7 @@ jobs: steps: - uses: actions/checkout@v4 - - my_android_job: - runs-on: ubuntu-22.04 # Works also with self hosted runner supporting docker + - runs-on: ubuntu-22.04 # Works also with self hosted runner supporting docker container: image: docker://fabernovel/android:api-29-v1.1.0 - name: Grant execute permission for gradlew From 64cb1a9cee5aab320011544baec7d1c25ab8dbab Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Mon, 24 Jun 2024 13:02:11 -0700 Subject: [PATCH 4/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index beffbc1..47c8682 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,17 @@ permissions: jobs: build: runs-on: ubuntu-latest + container: + image: docker://fabernovel/android:api-29-v1.1.0 steps: - uses: actions/checkout@v4 - - runs-on: ubuntu-22.04 # Works also with self hosted runner supporting docker - container: - image: docker://fabernovel/android:api-29-v1.1.0 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle From d991a7128d3aa41527b4a0c4add0d4bfeba553df Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Mon, 24 Jun 2024 13:05:50 -0700 Subject: [PATCH 5/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47c8682..564d642 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,15 +3,11 @@ name: Android-ci on: push: branches: - - "*" + - master pull_request: branches: - master -env: - ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} - API_KEY: ${{ secrets.API_KEY }} - permissions: contents: read @@ -20,7 +16,6 @@ jobs: runs-on: ubuntu-latest container: image: docker://fabernovel/android:api-29-v1.1.0 - steps: - uses: actions/checkout@v4 - name: set up JDK 11 From bd7cf9b56eefdd9d44a3b2c39ae4dac21a10d6de Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Mon, 24 Jun 2024 13:43:28 -0700 Subject: [PATCH 6/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 564d642..1185591 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,4 +29,4 @@ jobs: - name: Build with Gradle run: ./gradlew dependencies - name: Test - run: ./gradlew test \ No newline at end of file + run: ./gradlew test From 51f4d008fb2bc423d439e68f0cc9c194f517c8c2 Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Tue, 25 Jun 2024 13:52:07 -0700 Subject: [PATCH 7/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1185591..460f59d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,15 +15,9 @@ jobs: build: runs-on: ubuntu-latest container: - image: docker://fabernovel/android:api-29-v1.1.0 + image: docker://fabernovel/android:api-31-v1.6.0 steps: - uses: actions/checkout@v4 - - name: set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle From 533606ea9869a94f649586ac3c7b2dd555116cec Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Tue, 25 Jun 2024 16:23:21 -0700 Subject: [PATCH 8/8] Jenkins CI to GH actions --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 460f59d..8f0bed8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,6 @@ jobs: image: docker://fabernovel/android:api-31-v1.6.0 steps: - uses: actions/checkout@v4 - - name: Grant execute permission for gradlew - run: chmod +x gradlew - name: Build with Gradle run: ./gradlew dependencies - name: Test