Skip to content

Java SmokeTest with Gradle #73

Java SmokeTest with Gradle

Java SmokeTest with Gradle #73

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: Java SmokeTest with Gradle
on:
workflow_dispatch:
schedule:
- cron: '20 15 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone opensha fork
if: github.event.schedule != '20 15 * * 0'
uses: actions/checkout@v2
with:
repository: GNS-Science/opensha
ref: fix/rup-normalization
path: opensha
- name: Clone opensha
if: github.event.schedule == '20 15 * * 0'
uses: actions/checkout@v2
with:
repository: opensha/opensha
ref: master
path: opensha
- uses: actions/checkout@v2
with:
path: main
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Gradle
run: |
cd main
chmod +x gradlew
./gradlew smokeTest