Skip to content

Commit

Permalink
Merge pull request #6 from nitin-vavdiya/feat/verify-workflow
Browse files Browse the repository at this point in the history
feat: verify workflow added
  • Loading branch information
nitin-vavdiya authored Sep 11, 2024
2 parents 3502f9a + a925388 commit 0bc8ae0
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/[email protected]

- uses: ./.github/actions/setup-java

- name: Run Unit tests
run: ./gradlew test

0 comments on commit 0bc8ae0

Please sign in to comment.