Merge pull request #279 from Apicurio/dependabot/maven/org.apache.mav… #630
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: Verify Build Workflow | |
on: | |
push: | |
paths-ignore: | |
- '.github/**' | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README*' | |
- 'CODE_OF_CONDUCT*' | |
branches: [main] | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README*' | |
- 'CODE_OF_CONDUCT*' | |
branches: [main] | |
jobs: | |
build-verify: | |
name: Verify Build | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'Apicurio' | |
strategy: | |
matrix: | |
java-version: | |
- '11' | |
- '17' | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
cache: maven | |
- name: Build Project | |
run: ./mvnw clean install | |
- name: Google Chat Notification (Always) | |
if: github.event_name == 'push' && always() | |
uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 | |
with: | |
name: ${{ github.job }} | |
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} | |
status: ${{ job.status }} | |
- name: Google Chat Notification (Error) | |
if: github.event_name == 'push' && failure() | |
uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 | |
with: | |
name: ${{ github.job }} | |
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_ERRORS }} | |
status: ${{ job.status }} |