Skip to content

CAB-6258: Update GitHub actions to send alerts to MSTeams channels. #90

CAB-6258: Update GitHub actions to send alerts to MSTeams channels.

CAB-6258: Update GitHub actions to send alerts to MSTeams channels. #90

Workflow file for this run

name: "gws-client: CI Build"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and test artifacts
run: ./gradlew build
- name: Publish package to github packages
uses: gradle/actions/setup-gradle@v3
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Slack Notification
if: ${{ failure() }}
uses: uw-it-edm/notify-microsoft-teams@master
with:
webhook_url: ${{ secrets.MSTEAMS_CI_BUILDS }}
job: ${{ toJson(job) }}