antimine-android/.github/workflows/android.yml

41 lines
751 B
YAML
Raw Normal View History

2020-02-08 14:05:01 +00:00
name: Android CI
on: [push]
jobs:
2020-03-08 17:24:26 +00:00
ktlint:
name: Kotlin Linter
runs-on: ubuntu-18.04
steps:
- name: "checkout"
uses: actions/checkout@v2
- name: "ktlint"
uses: "vroy/gha-kotlin-linter@v1"
2020-02-08 17:30:52 +00:00
test:
name: Run Unit Tests
2020-03-08 17:24:26 +00:00
runs-on: ubuntu-latest
2020-02-08 17:30:52 +00:00
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Unit tests
2020-04-07 22:44:46 +00:00
run: bash ./gradlew -i -d test --stacktrace
2020-02-08 14:05:01 +00:00
2020-02-08 17:30:52 +00:00
build:
2020-02-08 14:05:01 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build