Goooler 2022-12-06 14:22:56 +08:00
parent 399ff52840
commit b0c1085f1f
2 changed files with 28 additions and 21 deletions

View file

@ -1,16 +1,33 @@
name: Android CI
on: [pull_request]
on:
pull_request:
paths-ignore:
- '.idea/**'
- '.gitattributes'
- '.github/**.json'
- '.gitignore'
- '.gitmodules'
- '**.md'
- 'LICENSE'
- 'NOTICE'
jobs:
build:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Gradle
run: ./gradlew assembleDebug ktlintCheck testsOnCi
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- run: ./gradlew assembleDebug ktlintCheck testsOnCi

View file

@ -1,10 +0,0 @@
name: "Validate Gradle Wrapper"
on: [pull_request]
jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1