Skip to content

chore(deps-dev): Bump @types/node in /springwolf-ui (#347) #1

chore(deps-dev): Bump @types/node in /springwolf-ui (#347)

chore(deps-dev): Bump @types/node in /springwolf-ui (#347) #1

name: springwolf-sqs
on:
push:
branches:
- master
paths:
- '.github/workflows/springwolf-sqs.yml'
- 'springwolf-core/**'
- 'springwolf-plugins/springwolf-sqs-plugin/**'
- 'springwolf-examples/springwolf-sqs-example/**'
pull_request:
types: [ opened, synchronize, ready_for_review ]
env:
plugin: springwolf-plugins/springwolf-sqs-plugin
example: springwolf-examples/springwolf-sqs-example
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup spectral
run: |
echo 'extends: ["spectral:asyncapi"]' > .spectral.yaml
- name: Lint asyncapi.json with spectral
uses: addnab/docker-run-action@v3
with:
image: stoplight/spectral:latest
options: -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }}
run: spectral lint --ruleset ./.spectral.yaml --fail-on-unmatched-globs ./${{ env.example }}/src/test/resources/asyncapi.json
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Check formatting (before running tests) on plugin
run: ./gradlew -p ${{ env.plugin }} spotlessCheck
- name: Check formatting (before running tests) on example
run: ./gradlew -p ${{ env.example }} spotlessCheck
- name: Run unit tests
run: ./gradlew -p ${{ env.plugin }} test
- name: Run integration tests
run: ./gradlew -p ${{ env.example }} test
- name: Run build, check, analyzeDependencies on plugin
run: ./gradlew -p ${{ env.plugin }} build
- name: Run build, check, analyzeDependencies on example
run: ./gradlew -p ${{ env.example }} build
- name: Publish docker image
if: github.ref == 'refs/heads/master'
run: ./gradlew -p ${{ env.example }} dockerBuildImage dockerPushImage
env:
ORG_GRADLE_PROJECT_SNAPSHOT: true
ORG_GRADLE_PROJECT_DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
ORG_GRADLE_PROJECT_DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish package
if: github.ref == 'refs/heads/master'
run: ./gradlew -p ${{ env.plugin }} publish
env:
ORG_GRADLE_PROJECT_SNAPSHOT: true
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGKEY}}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD}}
ORG_GRADLE_PROJECT_MAVEN_URL: https://s01.oss.sonatype.org/content/repositories/snapshots/
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}