Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions .github/workflows/maven-manual.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Manual Test Run With Maven
name: 🧪 Manual Test Run With Maven

on: workflow_dispatch

jobs:
manual-regression:
name: 🧪 Manual Regression
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: 🗂️ Checkout repository
uses: actions/checkout@v4

- name: ☕ Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build & Test
- name: 🛠️ Build & Test
run: mvn clean test
16 changes: 11 additions & 5 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Release & Deploy New Version to Maven Central
name: 🚀 Release & Deploy New Version to Maven Central

on:
push:
tags:
- '*'

jobs:
publish:
name: 📤 Publish to Maven Central
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java for publishing to Maven Central Repository
- name: 🗂️ Checkout repository
uses: actions/checkout@v4

- name: ☕ Set up Java for Maven Central
uses: actions/setup-java@v4
with:
java-version: 17
Expand All @@ -20,13 +24,15 @@ jobs:
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Build, Test & Publish

- name: 📦 Create GitHub Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "${{ github.workspace }}/out/artifacts/context-store_jar/*.jar"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to the Maven Central Repository

- name: 🚀 Deploy to Maven Central Repository
run: |
mvn \
--no-transfer-progress \
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven
name: ⚙️ Java CI with Maven

on:
pull_request:
Expand All @@ -15,15 +7,18 @@ on:

jobs:
regression-tests:
name: ✅ Regression Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: 🗂️ Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17

- name: ☕ Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build & Test

- name: 🧪 Build & Test
run: mvn clean test
Loading