-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from Crazy-Marvin/rc-1.0.3
Migrate CI to GitHub Actions
- Loading branch information
Showing
26 changed files
with
99 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
codecov: | ||
branch: master | ||
notify: | ||
require_ci_to_pass: yes | ||
require_ci_to_pass: true | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
status: | ||
project: yes | ||
patch: yes | ||
changes: no | ||
project: true | ||
patch: true | ||
changes: false | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
conditional: true | ||
loop: true | ||
method: false | ||
macro: false | ||
|
||
comment: | ||
layout: "header, diff" | ||
layout: diff | ||
behavior: default | ||
require_changes: no | ||
require_changes: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: macOS-10.14 | ||
steps: | ||
- name: "📥 Check-out" | ||
uses: actions/checkout@v1 | ||
- name: "🧰 Install JDK" | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
java-package: jdk | ||
- name: "🧰 Install Android SDK" | ||
uses: malinskiy/action-android/install-sdk@release/0.0.5 | ||
with: | ||
acceptLicense: yes | ||
- name: "📁 Copy local CI properties" | ||
run: cp ci/local.properties ./ | ||
- name: "🏗 Build" | ||
run: ./gradlew assembleDebug | ||
- name: "🧪 Android LINT" | ||
run: ./gradlew lint | ||
- name: "🧪 Code coverage" | ||
run: ./gradlew jacocoTestReport | ||
- name: "🧪 Unit test" | ||
run: ./gradlew test | ||
- name: "🧪 Integration test" | ||
uses: malinskiy/action-android/emulator-run-cmd@release/0.0.5 | ||
with: | ||
cmd: ./gradlew connectedAndroidTest | ||
api: 25 | ||
tag: google_apis | ||
abi: x86 | ||
- name: "📤 Upload code coverage" | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
yml: .codecov.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Deploy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
deploy: | ||
runs-on: macOS-10.14 | ||
steps: | ||
- name: "📥 Check-out" | ||
uses: actions/checkout@v1 | ||
- name: "🧰 Install JDK" | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
java-package: jdk | ||
- name: "🧰 Install Android SDK" | ||
uses: malinskiy/action-android/install-sdk@release/0.0.5 | ||
with: | ||
acceptLicense: yes | ||
- name: "🕶 Decrypt secret files" | ||
run: | | ||
cd secrets | ||
gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.FILES_PASSPHRASE }}" --output secrets.tar secrets.tar.gpg | ||
tar -xf secrets.tar | ||
- name: "📁 Copy local CI properties" | ||
run: cp ci/local.properties ./ | ||
- name: "🏗 Build" | ||
run: ./gradlew assembleDebug | ||
- name: "🚀 GitHub release" | ||
run: ./gradlew githubRelease | ||
- name: "🚀 Google Play publish" | ||
run: ./gradlew publishRelease |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.