mirror of
https://github.com/android-actions/setup-android
synced 2024-11-22 13:29:35 -08:00
changeup CI
This commit is contained in:
parent
4de319a2e2
commit
ca48f596fe
2 changed files with 18 additions and 18 deletions
9
.github/workflows/build-test.yml
vendored
9
.github/workflows/build-test.yml
vendored
|
@ -13,17 +13,22 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup node 12
|
- name: Setup node 12
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|
||||||
- run: npm run format-check
|
- run: npm run format-check
|
||||||
|
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
27
.github/workflows/run-test.yml
vendored
27
.github/workflows/run-test.yml
vendored
|
@ -13,35 +13,30 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
- macos-latest
|
- macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: setup-android
|
repository: daveol/SampleApplication
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: westnordost/StreetComplete
|
|
||||||
path: streetcomplete
|
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
id: 'setup-android'
|
uses: ${{ github.repository }}@${{ github.ref }}
|
||||||
uses: ./setup-android/
|
|
||||||
- name: Run sdkmanager
|
- name: Build SampleApplication
|
||||||
if: runner.os != 'windows'
|
if: runner.os != 'windows'
|
||||||
run: |
|
run: ./gradlew --no-daemon build
|
||||||
cd streetcomplete
|
|
||||||
./gradlew build
|
|
||||||
- name: Build streetcomplete (Windows)
|
- name: Build streetcomplete (Windows)
|
||||||
if: runner.os == 'windows'
|
if: runner.os == 'windows'
|
||||||
run: |
|
run: .\gradlew.bat --no-daemon build
|
||||||
cd streetcomplete
|
|
||||||
.\gradlew.bat build
|
|
||||||
|
|
Loading…
Reference in a new issue