-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.24 KB
/
ci.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
name: Maven CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{steps.build.outputs.version}}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- id: build
name: Build with Maven
run: |
mvn compile
echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> "$GITHUB_OUTPUT"
- name: Test with Maven
run: mvn test --batch-mode --fail-at-end
- name: Publish Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1
- name: Package with maven
run: mvn package
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: vinted-kafka-connect-vespa-${{ steps.build.outputs.version }}
path: |
target/components/packages/vinted-kafka-connect-vespa-${{ steps.build.outputs.version }}.zip
target/components/kafka-connect-vespa-${{ steps.build.outputs.version }}.jar