Skip to content

Commit 16a73fc

Browse files
Merge pull request #5 from igorcampos-dev/feature/spring-kafka-example-ci-cd
chore(ci): add GitHub Actions workflow for build and test from 'sprin…
2 parents 5b8cb78 + 8f699e6 commit 16a73fc

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

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/setup-java@v4.7.1
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)