Skip to content

Commit

Permalink
Merge pull request #8 from johnsonandjohnson/ci
Browse files Browse the repository at this point in the history
Added github actions for CI And Tests
  • Loading branch information
pwargulak authored Jun 5, 2024
2 parents 3b9730f + cbd9beb commit 8ea37ee
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Android CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types:
- opened
- synchronize

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- 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 buildDebug
26 changes: 26 additions & 0 deletions .github/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Unit Tests CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
ExecuteTests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- 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: Execute Unit Tests
run: ./gradlew testDebugUnitTest

0 comments on commit 8ea37ee

Please sign in to comment.