Skip to content

Commit

Permalink
Add verification job
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Feb 28, 2024
1 parent a600c78 commit db46c0a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/verification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Verification
on:
schedule:
- '@daily'
workflow_dispatch:

jobs:
build:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4

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

- name: Cache Maven/Gradle repositories for tests
uses: actions/cache@v4
with:
path: /tmp/start-spring-io-cache
# See https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
key: test-repositories-${{ runner.os }}-${{ github.run_id }}
restore-keys: test-repositories-${{ runner.os }}-

- name: Build with Maven
env:
START_SPRING_IO_TMPDIR: /tmp/start-spring-io-cache
run: ./mvnw --batch-mode --update-snapshots --activate-profiles verification verify

- name: Google Chat Notification
uses: Co-qn/google-chat-notification@3691ccf4763537d6e544bc6cdcccc1965799d056
with:
name: Verification
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
status: ${{ job.status }}
if: always()

0 comments on commit db46c0a

Please sign in to comment.