41 строка
1011 B
YAML
41 строка
1011 B
YAML
name: Dual Screen Experience Example build
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
inputs:
|
|
name:
|
|
description: 'manual build trigger'
|
|
home:
|
|
description: 'location'
|
|
required: false
|
|
|
|
jobs:
|
|
build-test-and-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
- name: Cache Gradle packages
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
restore-keys: ${{ runner.os }}-gradle
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: clean
|
|
run: ./gradlew clean
|
|
- name: assemble debug
|
|
run: ./gradlew assembleDebug
|
|
- name: unit tests
|
|
run: ./gradlew testDebugUnitTest
|
|
- name: lint
|
|
run: ./gradlew lintDebug
|
|
- name: ktlint
|
|
run: ./gradlew ktlint |