Skip to content

CAB-6276: Updates GitHub Actions setup-java distribution to "temurin"… #80

CAB-6276: Updates GitHub Actions setup-java distribution to "temurin"…

CAB-6276: Updates GitHub Actions setup-java distribution to "temurin"… #80

Workflow file for this run

name: 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@v4
with:
distribution: 'temurin'
java-version: 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
env:
USER: ${{ secrets.EDM_GITHUB_USER }}
GITHUB_PAT: ${{ secrets.EDM_GITHUB_PAT }}
- name: Publish package to github packages
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Slack Notification
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_TITLE: edm-zuul-proxy Build Alert
SLACK_COLOR: '#ff0000'