Skip to content

Commit

Permalink
Add GitHub Actions files
Browse files Browse the repository at this point in the history
  • Loading branch information
nhirokinet committed Jan 8, 2022
1 parent 6dee9ea commit dbc5162
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/android-connectedcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Android connectedCheck

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
name: Android connectedCheck
runs-on: macos-latest

strategy:
matrix:
api-level: [15, 29]

steps:
- name: checkout
uses: actions/checkout@v2

- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle

- name: Android Emulator Runner
uses: ReactiveCircus/[email protected]
with:
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedCheck
37 changes: 37 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Android CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Basic Gradle test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build bundleRelease
- name: License check
run: ./ci/license-checker.py

- name: Save artifacts
uses: actions/upload-artifact@v2
with:
name: bluelineconsole_github
path: |
app/build/outputs/**/*.apk
app/build/outputs/**/*.aab

0 comments on commit dbc5162

Please sign in to comment.