mirror of
https://github.com/android-actions/setup-android
synced 2024-11-22 13:29:35 -08:00
Add functional "run-test" action
This commit is contained in:
parent
47171f7d89
commit
060ba01b7f
1 changed files with 39 additions and 0 deletions
39
.github/workflows/run-test.yml
vendored
Normal file
39
.github/workflows/run-test.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
name: run-test
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- releases/*
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.operating-system }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
operating-system:
|
||||||
|
- ubuntu-latest
|
||||||
|
- windows-latest
|
||||||
|
- macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- name: Setup Android SDK
|
||||||
|
id: 'setup-android'
|
||||||
|
uses: ./
|
||||||
|
- name: Run sdkmanager
|
||||||
|
if: runner.os != 'windows'
|
||||||
|
run: |
|
||||||
|
sdkmanager --sdk_root=${ANDROID_HOME} "build-tools;30.0.1"
|
||||||
|
- name: Run sdkmanager
|
||||||
|
if: runner.os == 'windows'
|
||||||
|
run: |
|
||||||
|
sdkmanager.bat --sdk_root=${ANDROID_HOME} "build-tools;30.0.1"
|
Loading…
Reference in a new issue