Skip to content

Commit 1b7b426

Browse files
authored
Merge pull request #153 from rhusar/main-rename
Rename primary branch to 'main' + setup CI
2 parents c1451d1 + 22a5755 commit 1b7b426

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
pull_request:
7+
branches:
8+
- '*'
9+
permissions:
10+
contents: read
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ ubuntu-latest, windows-latest, macos-latest ]
17+
java: [ 11, 17 ]
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
- name: Set up JDK ${{ matrix.java }}
22+
uses: actions/setup-java@v1
23+
with:
24+
java-version: ${{ matrix.java }}
25+
- name: Cache local Maven repository
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.m2/repository
29+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: |
31+
${{ runner.os }}-maven-
32+
- name: Build with Maven
33+
run: mvn -B verify

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pipeline {
2323

2424
stage('Deploy SNAPSHOT') {
2525
when {
26-
branch 'master'
26+
branch 'main'
2727
}
2828
steps {
2929
configFileProvider([configFile(fileId: 'maven-settings-with-deploy-snapshot', variable: 'MAVEN_SETTINGS')]) {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<connection>scm:git:[email protected]:jgroups-extras/jgroups-kubernetes.git</connection>
5050
<developerConnection>scm:git:[email protected]:jgroups-extras/jgroups-kubernetes.git</developerConnection>
5151
<url>https://github.com/jgroups-extras/jgroups-kubernetes</url>
52-
<tag>master</tag>
52+
<tag>main</tag>
5353
</scm>
5454

5555
<properties>

0 commit comments

Comments
 (0)