-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (38 loc) · 1.09 KB
/
smokeTest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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