Skip to content

Commit

Permalink
Improve jobs definition formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSikora committed Oct 21, 2020
1 parent 1099868 commit 4a4d9af
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
steps:
- name: Checkout latest code
uses: actions/checkout@v2

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

Expand All @@ -24,5 +25,6 @@ jobs:
steps:
- name: Checkout latest code
uses: actions/checkout@v2

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
5 changes: 5 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Cache Gradle Dirs
uses: actions/cache@v2
with:
Expand All @@ -23,12 +24,14 @@ jobs:
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
restore-keys: cache-gradle-

- name: Deploy Release
env:
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_SIGNING_KEY: ${{ secrets.SONATYPE_NEXUS_SIGNING_KEY }}
run: ./gradlew uploadArchives --no-daemon --no-parallel --stacktrace

- name: Stop Gradle
run: ./gradlew --stop

Expand All @@ -39,9 +42,11 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Extract Release Notes
id: release-notes
uses: ffurrer2/extract-release-notes@v1

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout Repo
uses: actions/checkout@v2

- name: Cache Gradle Dirs
uses: actions/cache@v2
with:
Expand All @@ -31,10 +33,12 @@ jobs:
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
restore-keys: cache-gradle-

- name: Deploy Snapshot
env:
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
run: ./gradlew uploadArchives --no-daemon --no-parallel --stacktrace

- name: Stop Gradle
run: ./gradlew --stop
12 changes: 12 additions & 0 deletions .github/workflows/quality-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache Gradle Dirs
uses: actions/cache@v2
with:
Expand All @@ -32,13 +33,15 @@ jobs:
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
restore-keys: cache-gradle-

- name: Run Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedCheck --stacktrace
env:
API_LEVEL: 29

- name: Stop Gradle
run: ./gradlew --stop

Expand All @@ -48,6 +51,7 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Cache Gradle Dirs
uses: actions/cache@v2
with:
Expand All @@ -56,8 +60,10 @@ jobs:
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
restore-keys: cache-gradle-

- name: Run Tests
run: ./gradlew test --stacktrace

- name: Stop Gradle
run: ./gradlew --stop

Expand All @@ -67,6 +73,7 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Cache Gradle Dirs
uses: actions/cache@v2
with:
Expand All @@ -75,8 +82,10 @@ jobs:
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
restore-keys: cache-gradle-

- name: Run Detekt
run: ./gradlew detekt --stacktrace

- name: Stop Gradle
run: ./gradlew --stop

Expand All @@ -86,6 +95,7 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Cache Gradle Dirs
uses: actions/cache@v2
with:
Expand All @@ -94,7 +104,9 @@ jobs:
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
restore-keys: cache-gradle-

- name: Run Lint
run: ./gradlew lint --stacktrace

- name: Stop Gradle
run: ./gradlew --stop

0 comments on commit 4a4d9af

Please sign in to comment.