Skip to content

Commit

Permalink
Merge remote-tracking branch 'happening/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/main_and_pr_workflow.yml
  • Loading branch information
trajakovic committed Oct 30, 2024
2 parents c30a007 + 3bc1a87 commit a6d0069
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main_and_pr_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Gradle
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches:
- main
- beta
jobs:
check:
strategy:
matrix:
entry:
- { opensearch-version: 1.3.6, java-version: 19 }
- { opensearch-version: 2.3.0, java-version: 19 }
- { opensearch-version: 1.3.16, java-version: 11 }
- { opensearch-version: 1.3.16, java-version: 17 }
- { opensearch-version: 2.13.0, java-version: 11 }
Expand All @@ -32,19 +34,26 @@ jobs:
build:
strategy:
matrix:
java-version: [ 11, 17, 21 ]
java-version: [ 21 ]
runs-on: [ubuntu-latest, macos-latest, windows-latest]
name: Build on ${{ matrix.runs-on }} with jdk ${{ matrix.java-version }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js and semantic-release plugins
uses: actions/setup-node@v1
with:
node-version: 18.14.0
- run: npm install -g semantic-release@18.0.1 @semantic-release/github@8.0.4 @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/exec semantic-release/git semantic-release/release-notes-generator
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: ./gradlew build -x integrationTest
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

20 changes: 20 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"repositoryUrl": "https://github.com/superbet-group/opensearch-connector-for-apache-kafka",
"branches": [
{ "name": "main" },
{ "name": "beta", "channel": "beta", "prerelease": true },
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/github", {
"assets": [
{"path": "build/distributions/*.zip"},
{"path": "build/distributions/*.tar"},
]
}],
["@semantic-release/exec", {
"prepareCmd": "sed -i -e \"s/^version=.\\+$/version=${nextRelease.version}/g\" gradle.properties && ./gradlew distTar distZip"
}]
]
}
File renamed without changes.
File renamed without changes.

0 comments on commit a6d0069

Please sign in to comment.