This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
chore: license year update #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Workflow | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: [main] | |
jobs: | |
build-project: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'Apicurio' | |
steps: | |
- name: Checkout Code with Ref '${{ github.ref }}' | |
uses: actions/checkout@v2 | |
with: | |
path: apicurio-registry-examples | |
- name: Checkout Apicurio Registry | |
if: github.event_name == 'repository_dispatch' | |
uses: actions/checkout@v2 | |
with: | |
repository: Apicurio/apicurio-registry | |
path: apicurio-registry | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Build Apicurio Registry | |
if: github.event_name == 'repository_dispatch' | |
env: | |
SKIP_TESTS: "true" | |
BUILD_FLAGS: '--no-transfer-progress' | |
run: cd apicurio-registry && make build-all | |
- name: Retrieve Registry Version | |
if: github.event_name == 'repository_dispatch' | |
run: | | |
cd apicurio-registry | |
echo "REGISTRY_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
- name: Update Registry Version '${{env.REGISTRY_VERSION}}' in Examples Project | |
if: github.event_name == 'repository_dispatch' | |
run: cd apicurio-registry-examples && mvn versions:set-property -Dproperty=apicurio-registry.version -DgenerateBackupPoms=false -DnewVersion=${{ env.REGISTRY_VERSION }} | |
- name: Check Dependency Tree | |
run: cd apicurio-registry-examples && ./mvnw dependency:tree --no-transfer-progress | |
- name: Build Registry Examples | |
run: cd apicurio-registry-examples && ./mvnw clean install --no-transfer-progress -Dci | |
- name: Google Chat Notification | |
if: ${{ failure() }} | |
uses: Co-qn/google-chat-notification@releases/v1 | |
with: | |
name: ${{ github.workflow }} | |
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} | |
status: ${{ job.status }} |