Use github actions (#106)

* add unit tests config

* add build config

* do not overwrite artifact

* update workflow names and add badges to README

* update badge
This commit is contained in:
Prem Nirmal
2019-12-29 13:44:53 +00:00
committed by GitHub
parent f20fb07356
commit ea7907c204
4 changed files with 67 additions and 80 deletions
+4 -12
View File
@@ -1,9 +1,7 @@
# Stocks Widget
[![Circle CI](https://circleci.com/gh/premnirmal/StockTicker.svg?style=svg)](https://circleci.com/gh/premnirmal/StockTicker)
[![Build](https://github.com/premnirmal/StockTicker/workflows/Build/badge.svg)](https://github.com/premnirmal/StockTicker/actions) [![Unit tests](https://github.com/premnirmal/StockTicker/workflows/Run%20unit%20tests/badge.svg)](https://github.com/premnirmal/StockTicker/actions)
[![Google play link](graphics/google-play-badge.png)](https://play.google.com/store/apps/details?id=com.github.premnirmal.tickerwidget)
[<img src="https://i.imgur.com/u6kj7yf.png"
[![Google play link](graphics/google-play-badge.png)](https://play.google.com/store/apps/details?id=com.github.premnirmal.tickerwidget) [<img src="https://i.imgur.com/u6kj7yf.png"
alt="Get it on F-Droid"
height="80">](https://f-droid.org/app/com.github.premnirmal.tickerwidget)
@@ -11,12 +9,6 @@
![](https://lh3.googleusercontent.com/5bJo7sEfgkI5KX2rhvOwugq42B5lPY3FcNWIHschi-ek5Rqo_p6_ajxxAiiJ6cXI2cU=h400-rw)
![](https://lh3.googleusercontent.com/pKI7tibPnU4HS92l-ubpphJVS_7wCJdteg6td6gnAnbx8sqiVFJZEjTiQe4hBiPU5W0=h400-rw)
## Motivation
This app is to demonstrate usage of **kotlin** on android using [Dagger2](https://github.com/google/dagger) and [Kotlin coroutines](https://github.com/Kotlin/kotlinx.coroutines).
This app also shows how to write android unit tests using [mockito](https://github.com/mockito/mockito) and [robolectric](https://github.com/robolectric/robolectric) using kotlin.
## App features:
- A homescreen widget that shows your stock portolio in a resizable grid.
@@ -25,8 +17,8 @@ This app also shows how to write android unit tests using [mockito](https://gith
- Only performs automatic fetching of stocks during trading hours and weekdays.
### Importing and exporting
- You can import a list of tickers by selecting **import tickers** from the settings menu. All you need is a textfile with your tickers in *comma-separated* format.
- You can also export your tickers to a file by selecting **export tickers**.
- You can import a list of tickers by selecting **import tickers** from the settings menu. All you need is a textfile with your tickers in *comma-separated* format, or in *json format*.
- You can also export your tickers to a *json* file by selecting **export tickers**.
## License