Skip to content

Commit

Permalink
Give names to all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarSpruit committed Aug 9, 2023
1 parent d204003 commit dcc849b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/assemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
assemble-debug:
name: Assemble debug
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ concurrency:

jobs:
update_verification_metadata:
name: Dependency changes
uses: ./.github/workflows/update_verification_metadata.yml
code_analysis:
name: Code analysis
uses: ./.github/workflows/code_analysis.yml
needs: update_verification_metadata
assemble:
name: Assemble
uses: ./.github/workflows/assemble.yml
needs: code_analysis
test:
name: Test
uses: ./.github/workflows/run_tests.yml
needs: assemble
2 changes: 2 additions & 0 deletions .github/workflows/code_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
detekt:
name: Run detekt
runs-on: ubuntu-latest

steps:
Expand All @@ -26,6 +27,7 @@ jobs:
run: ./gradlew detekt --no-daemon

ktlint:
name: Run ktlint
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
unit-test:
name: Run unit tests
runs-on: ubuntu-latest

steps:
Expand All @@ -31,6 +32,7 @@ jobs:
run: ./gradlew testDebugUnitTest --no-daemon

lint:
name: Run lint
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update_verification_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
detect-dependency-changes:
name: Detect dependency changes
runs-on: ubuntu-latest
outputs:
continue: ${{ steps.detect-dependency-changes.outputs.continue }}
Expand All @@ -19,6 +20,7 @@ jobs:
if [ -n "$(git diff origin/develop dependencies.gradle)" ];then echo "continue=true" >> "$GITHUB_OUTPUT";else echo "continue=false" >> "$GITHUB_OUTPUT"; fi
update-verification-metadata:
name: Update verification metadata
needs: detect-dependency-changes
if: startsWith(github.head_ref, 'renovate/') && needs.detect-dependency-changes.outputs.continue == 'true'
runs-on: ubuntu-latest
Expand Down

0 comments on commit dcc849b

Please sign in to comment.