Skip to content

3.1.3

3.1.3 #1

Workflow file for this run

name : Gradle Build 💫
on : [ push, pull_request ]
jobs :
build :
# Only run on PRs if the source branch is on someone else's repo
if : ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on : ubuntu-latest
steps :
- uses : actions/checkout@v2
- uses : gradle/wrapper-validation-action@v1
- name : Set up JDK 8
uses : actions/setup-java@v1
with :
java-version : 8
- name : Grant execute permission for gradlew
run : chmod +x gradlew
- uses : eskatos/gradle-command-action@v1
with :
arguments : build test
wrapper-cache-enabled : true
dependencies-cache-enabled : true
configuration-cache-enabled : true
id : gradle
- name : "Comment build scan url"
uses : actions/github-script@v3
if : github.event_name == 'pull_request' && failure()
with :
github-token : ${{secrets.GITHUB_TOKEN}}
script : |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ ${{ github.workflow }} failed: ${{ steps.gradle.outputs.build-scan-url }}'
})
- uses : actions/upload-artifact@v2
with :
path : build/libs/IndustrialUpgrade*
if-no-files-found : error