Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Build

Build #3082

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build
on:
push:
branches:
- '**'
pull_request:
branches:
- master
- dep/dependency_upgrade_staging
schedule:
- cron: "0 22 * * 1"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/[email protected]
with:
java-version: 11
distribution: corretto
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew check build buildDashboard generateAggregatedReports -x integrationTest --continue
- name: Upload coverage report to CodeCov
uses: codecov/codecov-action@v3
with:
file: build/reports/jacoco/aggregatedJacocoReport/aggregatedJacocoReport.xml # optional
fail_ci_if_error: true # optional (default = false)
verbose: true
- name: Slack notification when master build fails
if: ${{ failure() && github.ref == 'refs/heads/master'}}
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cerberus-alerts
SLACK_MESSAGE: 'Cerberus main build has failed :build-failed:'
SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
SLACK_TITLE: Cerberus Build Failure Notification
SLACK_COLOR: '#FF0000'
SLACK_USERNAME: GitHub Actions