Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI with Github actions #528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/Android-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: PullRequest

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
buildTest:
name: Build & Test JDK ${{ matrix.java_version }}
runs-on: macOS-latest
strategy:
matrix:
java_version: [1.8]
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.0.7
- name: Build project
run: ./gradlew assembleDebug
- name: Run tests
run: ./gradlew test
- name: Run instrumentation tests
uses: malinskiy/action-android/emulator-run-cmd@release/0.0.7
with:
cmd: ./gradlew cAT
api: 28
tag: default
abi: x86
- name: Archive Espresso results
uses: actions/[email protected]
with:
name: Fast-Android-Networking-Espresso-report
path: app/build/reports/androidTests/connected
- name: Save logcat output
uses: actions/upload-artifact@master
if: failure()
with:
name: Fast-Android-Networking-logcat
path: artifacts/logcat.log
Check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.0.7
- name: Code checks
run: ./gradlew check
- name: Archive Lint report
uses: actions/[email protected]
if: ${{ always() }}
with:
name: Fast-Android-Networking-Lint-report
path: app/build/reports/lint-results.html
17 changes: 17 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Validate Gradle Wrapper"

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.