Elffuss BraidHub

kikocis/EDC public

main · 2.5 KiBRawPermalink
1name: Run Tests
2
3on:
4 workflow_dispatch:
5 push:
6 branches: [ main, release/*, bugfix/* ]
7 pull_request:
8 branches: [ main, release/*, bugfix/* ]
9 paths-ignore:
10 - "**.md"
11 - "docs/**"
12 - "CODEOWNERS"
13 - "LICENSE"
14
15concurrency:
16 group: ${{ github.workflow }}-${{ github.ref }}
17 cancel-in-progress: true
18
19jobs:
20
21 CodeQL:
22 uses: eclipse-edc/.github/.github/workflows/codeql-analysis.yml@main
23 secrets: inherit
24
25 Checkstyle:
26 runs-on: ubuntu-latest
27 steps:
28 - uses: actions/checkout@v4
29 - uses: eclipse-edc/.github/.github/actions/setup-build@main
30 - name: Run Checkstyle
31 run: ./gradlew checkstyleMain checkstyleTest checkstyleTestFixtures
32
33 Dependency-Check:
34 uses: eclipse-edc/.github/.github/workflows/dependency-check.yml@main
35 secrets: inherit
36
37 Javadoc:
38 runs-on: ubuntu-latest
39 steps:
40 - uses: actions/checkout@v4
41 - uses: eclipse-edc/.github/.github/actions/setup-build@main
42 - name: Run Javadoc
43 run: ./gradlew javadoc
44
45 Unit-Tests:
46 runs-on: ubuntu-latest
47 steps:
48 - uses: actions/checkout@v4
49 - uses: eclipse-edc/.github/.github/actions/setup-build@main
50 - name: Run unit tests
51 run: ./gradlew test
52
53 Postgresql-Integration-Tests:
54 runs-on: ubuntu-latest
55
56 services:
57 postgres:
58 image: postgres:14.2
59 ports:
60 - 5432:5432
61 env:
62 POSTGRES_PASSWORD: password
63
64 steps:
65 - uses: actions/checkout@v4
66 - uses: eclipse-edc/.github/.github/actions/setup-build@main
67 - name: Postgresql Tests
68 run: ./gradlew test -DincludeTags="PostgresqlIntegrationTest"
69
70 End-To-End-Tests:
71 runs-on: ubuntu-latest
72 steps:
73 - uses: actions/checkout@v4
74 - uses: eclipse-edc/.github/.github/actions/setup-build@main
75 - name: End to End Integration Tests
76 run: ./gradlew test -DincludeTags="EndToEndTest"
77
78 Component-Tests:
79 runs-on: ubuntu-latest
80 steps:
81 - uses: actions/checkout@v4
82 - uses: eclipse-edc/.github/.github/actions/setup-build@main
83
84 - name: Component Tests
85 run: ./gradlew test -DincludeTags="ComponentTest"
86
87 API-Tests:
88 runs-on: ubuntu-latest
89 steps:
90 - uses: actions/checkout@v4
91 - uses: eclipse-edc/.github/.github/actions/setup-build@main
92 - name: Component Tests
93 run: ./gradlew test -DincludeTags="ApiTest"
94
95 Verify-OpenApi:
96 if: github.event_name == 'pull_request'
97 uses: eclipse-edc/.github/.github/workflows/verify-openapi.yml@main
98 secrets: inherit
99