Core Release 8.1.0 #1680
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR - Task/Bug Runner | |
| on: | |
| pull_request: | |
| branches: [ develop ] | |
| # Cancel in-progress runs when a new commit is pushed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Code Quality Checks (Run in Parallel) | |
| lint: | |
| if: startsWith(github.head_ref, 'task/') || startsWith(github.head_ref, 'feat/') || startsWith(github.head_ref, 'bug/') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| name: Code Quality - lint | |
| steps: | |
| - name: Checkout the code from Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: ./.github/mini_flows/setup_jdk | |
| - name: Run lint | |
| uses: ./.github/mini_flows/lint | |
| detekt: | |
| if: startsWith(github.head_ref, 'task/') || startsWith(github.head_ref, 'feat/') || startsWith(github.head_ref, 'bug/') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| name: Code Quality - detekt | |
| steps: | |
| - name: Checkout the code from Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: ./.github/mini_flows/setup_jdk | |
| - name: Run detekt | |
| uses: ./.github/mini_flows/codechecks_detekt | |
| checkstyle: | |
| if: startsWith(github.head_ref, 'task/') || startsWith(github.head_ref, 'feat/') || startsWith(github.head_ref, 'bug/') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| name: Code Quality - checkstyle | |
| steps: | |
| - name: Checkout the code from Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: ./.github/mini_flows/setup_jdk | |
| - name: Run checkstyle | |
| uses: ./.github/mini_flows/codechecks_checkstyle | |
| # Unit Tests and Coverage | |
| test: | |
| needs: [lint, detekt, checkstyle] | |
| if: startsWith(github.head_ref, 'task/') || startsWith(github.head_ref, 'feat/') || startsWith(github.head_ref, 'bug/') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| pull-requests: write | |
| name: Unit Tests and Coverage | |
| steps: | |
| - name: Checkout the code from Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: ./.github/mini_flows/setup_jdk | |
| - name: Unit Tests and Jacoco Coverage (DEBUG) | |
| uses: ./.github/mini_flows/test_and_coverage_debug | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| baseline-branch: develop | |
| # Build (Only after tests pass) | |
| build: | |
| needs: [test] | |
| if: startsWith(github.head_ref, 'task/') || startsWith(github.head_ref, 'feat/') || startsWith(github.head_ref, 'bug/') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| name: Build Release AARs | |
| steps: | |
| - name: Checkout the code from Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: ./.github/mini_flows/setup_jdk | |
| - name: Build Release AARs | |
| uses: ./.github/mini_flows/build_code_release |