Skip to content

Commit

Permalink
trigger unit tests after reused checks
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <justin+github@florentine.us>
  • Loading branch information
jflo committed Dec 4, 2023
1 parent 479d80e commit 290c49c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ name: checks
on:
push:
branches:
- master
- main
pull_request:

jobs:
lint:
runs-on: ubuntu-22.04
uses: ./.github/workflows/repolinter.yml
gradle-wrapper:
runs-on: ubuntu-22.04
uses: ./.github/workflows/gradle-wrapper-validation.yml
spotless:
runs-on: ubuntu-22.04
runs-on: ubuntu-22.04
uses: ./.github/workflows/spotless.yml
compile:
runs-on: ubuntu-22.04
uses: ./.github/workflows/compile.yml
4 changes: 1 addition & 3 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: compile
on:
push:
branches: [ main ]
pull_request:
workflow_call:

env:
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
name: gradle-wrapper-validation
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
workflow_call:


jobs:
validation:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
name: repolinter

on:
push:
branches:
- master
- main
pull_request:
workflow_call:


jobs:
lint:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/spotless.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: spotless
on:
push:
branches: [ main ]
pull_request:
workflow_call:


jobs:
spotless:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: unit-tests
on:
workflow_run:
workflows: [ repolinter, spotless, gradle-wrapper-validation, compile]
workflows: [ checks ]

env:
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"
Expand Down

0 comments on commit 290c49c

Please sign in to comment.