Skip to content

Commit

Permalink
💚 Add Ci
Browse files Browse the repository at this point in the history
Ci for buld and test added, readme updated
  • Loading branch information
EndikaCo committed Jan 8, 2024
1 parent 33a3cf1 commit 167fd69
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Gradle build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'

- name: Grant execute permission to Gradle wrapper
run: chmod +x ./gradlew

- name: Build with Gradle
uses: gradle/gradle-build-action@v2.6.0
with:
arguments: build
33 changes: 33 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Android testing CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1 # Limit fetch depth to improve performance

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'

- name: Grant execute permission to Gradle wrapper
run: chmod +x ./gradlew

- name: Unit Test
run: ./gradlew testDebugUnitTest
continue-on-error: true # Enable error handling and continue on failure

- name: Android Test Report
uses: asadmansr/android-test-report-action@v1.2.0
if: ${{ always() }}
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# Bluetooth bike connection
Bluetooth Ebike connector
=====

This is a simple app to connect to a ebike via bluetooth, get the data from it, and also send data to the bike.
[![Android](https://img.shields.io/badge/Android-grey?style=&logo=android&logoColor=green)](https://www.android.com/)
[![KOTLIN](https://img.shields.io/badge/Kotlin-grey?style=none&logo=Kotlin&logoColor=-5C2D91)](https://kotlinlang.org/)
[![CI](https://github.com/EndikaCo/Bluetooth_bike/actions/workflows/testing.yml/badge.svg)]()
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/EndikaCo/Bluetooth_bike/LICENSE)

[![Android](https://img.shields.io/badge/Android-grey?style=for-the-badge&logo=android&logoColor=green)](https://www.android.com/)
[![KOTLIN](https://img.shields.io/badge/Kotlin-grey?style=for-the-badge&logo=Kotlin&logoColor=-5C2D91)](https://kotlinlang.org/)
[![Compose](https://img.shields.io/badge/Compose-grey?style=for-the-badge&logo=android&logoColor=green)](https://kotlinlang.org/)
[![MVVM](https://img.shields.io/badge/Arch-MVVM-blue.svg?style=for-the-badge)](https://developer.android.com/jetpack/guide#recommended-app-arch)
Simple app to connect to a Ebike via bluetooth, get the data from it, and send commands back to interact with it.

[![Compose](https://img.shields.io/badge/Jetpack_Compose-grey?style=none&logo=)](https://kotlinlang.org/)
[![Bluetooth](https://img.shields.io/badge/bluetooth-grey?style=none&logo=bluetooth&logoColor=white)]()
[![Dagger](https://img.shields.io/badge/Dagger_Hilt-grey?style=&logo=)]()
[![MVVM](https://img.shields.io/badge/MVVM-grey?style=&logo=)]()
[![State Flow](https://img.shields.io/badge/State_Flow-grey?style=&logo=)]()
[![Canvas](https://img.shields.io/badge/canvas-grey?style=none&logo=canvas&logoColor=white)]()

| Devices screen | Bike screen |
|--------------------------------------|-------------------------------------|
| ![img.png](images/devicesScreen.png) | ![img_1.png](images/bikeScreen.png) |
| | Content Cell |

0 comments on commit 167fd69

Please sign in to comment.