Skip to content

Commit

Permalink
Update GitHub actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Sep 20, 2021
1 parent a8e99d2 commit 1307888
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,37 @@ name: Android CI

on:
push:
branches:
- master
pull_request:
branches:
- master
branches: [ master ]
pull_request:
branches: [ '*' ]

jobs:
lint:
name: Spotless check
runs-on: ubuntu-18.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: spotless
run: ./gradlew spotlessCheck

api_check:
name: API check
runs-on: ubuntu-18.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: API check
run: ./gradlew apiCheck

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -28,15 +52,8 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Make Gradle executable
run: chmod +x ./gradlew

- name: spotless
run: ./gradlew spotlessCheck

- name: API check
run: ./gradlew apiCheck

- name: Build with Gradle
run: ./gradlew build

0 comments on commit 1307888

Please sign in to comment.