mirror of
https://github.com/ev-map/EVMap.git
synced 2026-01-04 13:07:49 -05:00
37 lines
935 B
YAML
37 lines
935 B
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
|
|
name: Tests
|
|
|
|
jobs:
|
|
|
|
test:
|
|
name: Build and Test (${{ matrix.buildvariant }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
buildvariant: [ FossNormal, GoogleNormal, GoogleAutomotive ]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Java environment
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: 11
|
|
distribution: 'zulu'
|
|
cache: 'gradle'
|
|
|
|
- name: Copy apikeys.xml
|
|
run: cp .github/workflows/apikeys-ci.xml app/src/main/res/values/apikeys.xml
|
|
|
|
- name: Build app
|
|
run: ./gradlew assemble${{ matrix.buildvariant }}Debug --no-daemon
|
|
- name: Run unit tests
|
|
run: ./gradlew test${{ matrix.buildvariant }}DebugUnitTest --no-daemon
|
|
- name: Run Android Lint
|
|
run: ./gradlew lint${{ matrix.buildvariant }}Debug --no-daemon
|