diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..ca99fe5
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,33 @@
+name: CI
+on:
+ push:
+ branches:
+ - '*'
+ pull_request:
+ branches:
+ - '*'
+permissions:
+ contents: read
+jobs:
+ ci:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ ubuntu-latest, windows-latest, macos-latest ]
+ java: [ 11, 17 ]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: Cache local Maven repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - name: Build with Maven
+ run: mvn -B verify
diff --git a/Jenkinsfile b/Jenkinsfile
index ee817bb..c3168c2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -23,7 +23,7 @@ pipeline {
stage('Deploy SNAPSHOT') {
when {
- branch 'master'
+ branch 'main'
}
steps {
configFileProvider([configFile(fileId: 'maven-settings-with-deploy-snapshot', variable: 'MAVEN_SETTINGS')]) {
diff --git a/pom.xml b/pom.xml
index caf8968..1e1f372 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,7 +49,7 @@
scm:git:git@github.com:jgroups-extras/jgroups-kubernetes.git
scm:git:git@github.com:jgroups-extras/jgroups-kubernetes.git
https://github.com/jgroups-extras/jgroups-kubernetes
- master
+ main