Skip to content

Commit 8f699e6

Browse files
chore(ci): add GitHub Actions workflow for build and test from 'spring-kafka-example' project.
1 parent 8415217 commit 8f699e6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: spring-kafka-example CI Build
2+
3+
on:
4+
push:
5+
paths:
6+
- "spring-kafka-example/**"
7+
branches: [master]
8+
pull_request:
9+
paths:
10+
- "spring-kafka-example/**"
11+
types:
12+
- opened
13+
- synchronize
14+
- reopened
15+
16+
jobs:
17+
build:
18+
name: Run Unit & Integration Tests
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
working-directory: spring-kafka-example
23+
strategy:
24+
matrix:
25+
distribution: [ 'temurin' ]
26+
java: [ '21' ]
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
31+
32+
- name: Set up JDK ${{ matrix.java }}
33+
uses: actions/[email protected]
34+
with:
35+
java-version: ${{ matrix.java }}
36+
distribution: ${{ matrix.distribution }}
37+
cache: 'maven'
38+
- name: Build and analyze
39+
run: ./mvnw clean verify

0 commit comments

Comments
 (0)