Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jheng-hao-lin-cko committed Oct 5, 2023
1 parent 52e78f7 commit 99c939c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
20 changes: 0 additions & 20 deletions .github/actions/setup-env.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/send-sonar-qube-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Environment
uses: ./.github/actions/setup-env.yml
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: corretto
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Jacoco Test Report for :checkout
run: ./gradlew :checkout:jacocoTestReport
- name: Build Jacoco Test Report for :frames
Expand Down
30 changes: 24 additions & 6 deletions .github/workflows/verify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Environment
uses: ./.github/actions/setup-env.yml
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: corretto
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Ktlint
run: ./gradlew ktlintCheck
- name: Run Android Lint
Expand All @@ -37,8 +43,14 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Environment
uses: ./.github/actions/setup-env.yml
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: corretto
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

Expand All @@ -51,7 +63,13 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Environment
uses: ./.github/actions/setup-env.yml
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: corretto
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run unit tests
run: ./gradlew test

0 comments on commit 99c939c

Please sign in to comment.