-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.21 KB
/
main.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
on:
pull_request:
types: [ opened, synchronize ]
jobs:
validate-tests:
runs-on: ubuntu-latest
env:
MAIL_HOST: ${{ secrets.MAIL_HOST }}
MAIL_PORT: ${{ secrets.MAIL_PORT }}
MAIL_USERNAME: ${{ secrets.MAIL_USERNAME }}
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }}
steps:
- name: Checkout repository and switch to branch
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Run Kafka KRaft Broker
uses: spicyparrot/kafka-kraft-action@v1.1.0
with:
kafka-version: "3.7.0"
kafka-topics: "installationCompleted.request,1"
env:
MAIL_HOST: ${{ secrets.MAIL_HOST }}
MAIL_PORT: ${{ secrets.MAIL_PORT }}
MAIL_USERNAME: ${{ secrets.MAIL_USERNAME }}
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }}
- name: Validate checkstyle
run: mvn checkstyle:check
- name: Validate test coverage
run: mvn clean verify
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}