-
Notifications
You must be signed in to change notification settings - Fork 4
90 lines (83 loc) · 2.94 KB
/
ci.yml
File metadata and controls
90 lines (83 loc) · 2.94 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: ci
on:
push:
branches:
- main
tags:
- '*'
pull_request:
env:
MVN_ARGS: "--settings build/.settings.xml"
jobs:
build-test:
name: Build-Test (JDK ${{ matrix.jdk }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
jdk: ['11', '17']
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
cache: maven
- name: Set Maven artifact version on tagged builds
if: matrix.jdk == '11'
run: build/setMavenVersion.sh
- name: Build and verify
run: mvn verify -fae -DskipITs $MVN_ARGS
# Uncomment these jobs when you're ready to use them.
# semantic-release:
# name: Semantic-Release
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'IBM/eventstreams-java-sdk'
# needs: build-test
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
# with:
# node-version: '18'
# - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
# with:
# python-version: '3.8'
# - run: npm install
# - run: pip install --user bump-my-version
# - run: npm run semantic-release
#
# publish-javadoc:
# name: Publish-Javadoc
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'IBM/eventstreams-java-sdk'
# needs: build-test
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
# with:
# distribution: temurin
# java-version: '11'
# cache: maven
# - name: Set Maven artifact version
# run: build/setMavenVersion.sh
# - run: mvn clean javadoc:aggregate $MVN_ARGS
# - run: build/publishJavadoc.sh
# - run: echo "Javadocs successfully published to gh-pages!"
#
# publish-maven-central:
# name: Publish-To-Maven-Central
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'IBM/eventstreams-java-sdk'
# needs: build-test
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
# with:
# distribution: temurin
# java-version: '11'
# cache: maven
# - run: build/setupSigning.sh
# - run: build/setMavenVersion.sh
# - run: mvn deploy $MVN_ARGS -DskipTests -P central
# - run: echo "Maven artifacts successfully published to Maven Central!"