From a925388463921a719377bb712ff813aefed2139f Mon Sep 17 00:00:00 2001 From: Nitin Vavdiya Date: Wed, 11 Sep 2024 11:48:32 +0530 Subject: [PATCH] feat: verify workflow added --- .github/workflows/verify.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index a42bfce..c1e690a 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -21,12 +21,24 @@ name: "Verify" on: - workflow_call: - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + pull_request: + types: [ opened, synchronize, reopened ] + branches: [ main ] + paths: + - 'src/**' + - 'gradle.properties' + - 'build.gradle' + - 'settings.gradle' + push: + branches: [ main ] + paths: + - 'src/**' + - 'gradle.properties' + - 'build.gradle' + - 'settings.gradle' jobs: - verify-license-headers: runs-on: ubuntu-latest steps: @@ -41,17 +53,13 @@ jobs: eval $cmd; exit 1; fi - verify-dependencies: uses: eclipse-edc/.github/.github/workflows/dependency-check.yml@main - unit-tests: runs-on: ubuntu-latest needs: [ verify-dependencies, verify-license-headers ] steps: - uses: actions/checkout@v3.5.2 - - uses: ./.github/actions/setup-java - - name: Run Unit tests run: ./gradlew test