Skip to content

rename persisted streams to persistent streams #91

rename persisted streams to persistent streams

rename persisted streams to persistent streams #91

Workflow file for this run

name: Axon Server API
on:
push:
branches:
- master
- axon-server-api-*.*.x
- persisted-streams
workflow_dispatch:
jobs:
build:
name: Test and Build on JDK 11
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1.4.3
with:
java-version: 11
server-id: sonatype
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache .m2
uses: actions/cache@v2.1.3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: Maven
run: |
mvn -B -U clean verify
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to Sonatype
if: github.github.head_ref == null && success()
run: |
mvn -B -U deploy -DskipTests=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_ID }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASS }}
- name: Notify success to Slack
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1.1.2
with:
channel_id: C015XFURSJU
status: SUCCESS
color: good
- name: Notify failure to Slack
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1.1.2
with:
channel_id: C015XFURSJU
status: FAILED
color: danger
- name: Trigger plugin API build
if: github.github.head_ref == null && success()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'AxonIQ',
repo: 'axon-server-plugin-api',
workflow_id: 'maven.yml',
ref: 'master'
})