Optimize CI a bit
https://github.com/actions/checkout/releases/tag/v3.0.0 https://github.com/actions/setup-java/releases/tag/v3.0.0 https://github.com/gradle/gradle-build-action
This commit is contained in:
parent
399ff52840
commit
b0c1085f1f
2 changed files with 28 additions and 21 deletions
39
.github/workflows/android.yml
vendored
39
.github/workflows/android.yml
vendored
|
@ -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
|
||||
|
|
10
.github/workflows/gradle-wrapper-validation.yml
vendored
10
.github/workflows/gradle-wrapper-validation.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue