Java SmokeTest with Gradle #73
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: 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 |