-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 1.62 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Verify Pull Request
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
on:
pull_request:
paths-ignore:
- 'docs/**'
branches: [ main ]
workflow_dispatch:
jobs:
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java and Maven
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: 'maven'
- name: Check code format
run: |
./mvnw spotless:check --file pom.xml
build_and_run_unit_and_integration_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java and Maven
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: 'maven'
- name: Run integration tests
run: ./mvnw clean install
run_e2e_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java and Maven
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: 'maven'
- name: Setup minikube for E2E tests
uses: manusa/[email protected]
with:
minikube version: v1.34.0
kubernetes version: v1.31.1
github token: ${{ secrets.GITHUB_TOKEN }}
driver: docker
- name: Run E2E tests
run: |
eval $(minikube -p minikube docker-env)
./mvnw clean install -DskipTests -Dquarkus.container-image.build=true
./mvnw test -Pe2e-tests