sample-extension-java: migrate to test suites #126
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: Build docker sample-extension-java | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "sample-extension-java/**" | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
env: | |
SAMPLE_NAME: sample-extension-java | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: sample-extension-java | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Gradle Build and then Build the Docker image | |
run: make build-image | |
- name: Slack Notify | |
uses: rtCamp/[email protected] | |
if: ${{ failure() }} | |
env: | |
SLACK_MESSAGE: 'Build Failed for ${{ env.SAMPLE_NAME }}' | |
SLACK_WEBHOOK: ${{ secrets.BUILD_FAIL_NOTIFY_SLACK_URL }} |