Skip to content

Commit 2ee99f3

Browse files
committed
Github action to keep up to date and build pull request
1 parent 19d4ad0 commit 2ee99f3

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gradle" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"
12+
- package-ecosystem: "github-actions"
13+
directory: "/" # Location of package manifests
14+
schedule:
15+
interval: "weekly"

.github/workflows/Android-CI.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PullRequest
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
buildTest:
13+
name: Build & Test JDK ${{ matrix.java_version }}
14+
runs-on: macos-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
java_version: [ 1.8, 11.0.3 ]
19+
steps:
20+
- name: Checkout
21+
uses: actions/[email protected]
22+
with:
23+
fetch-depth: 0
24+
- name: Install JDK ${{ matrix.java_version }}
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: ${{ matrix.java_version }}
28+
- name: Install Android SDK
29+
uses: malinskiy/action-android/install-sdk@release/0.1.0
30+
- name: Run instrumentation tests
31+
uses: malinskiy/action-android/emulator-run-cmd@release/0.1.0
32+
with:
33+
cmd: ./gradlew assembleDebug install
34+
api: 28
35+
tag: default
36+
abi: x86

0 commit comments

Comments
 (0)