Latest IJ #451
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
# 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: Latest IJ | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build --continue -PplatformVersion=LATEST-EAP-SNAPSHOT | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-reports | |
path: | | |
build/test-results/**/*.xml | |
build/jacoco/ | |
- name: create issue on fail | |
if: failure() | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
issueNum=$(gh search issues --state open "Next EAP SNAPSHOT build failure") | |
if [ -z "$issueNum" ]; then | |
gh issue create --title "Next EAP SNAPSHOT build failure" --body "See https://github.com/redhat-developer/intellij-openshift-connector/actions/runs/${{ github.run_id }}" | |
else | |
echo "issue already exists : $issueNum" | |
fi | |