Skip to content

Commit 7a6d930

Browse files
committed
Add if-else statement to run tests against real website on schedule
1 parent 48a9993 commit 7a6d930

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22

33
on:
4+
schedule:
5+
# once per day
6+
- cron: 0 0 * * *
47
push:
58
branches:
69
- dev
@@ -25,5 +28,11 @@ jobs:
2528
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
2629
restore-keys: ${{ runner.os }}-gradle
2730

31+
# See gradle file for difference between downloaders
2832
- name: Build and run Tests
29-
run: ./gradlew check --stacktrace -Ddownloader=MOCK
33+
run: |
34+
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
35+
./gradlew check --stacktrace -Ddownloader=REAL
36+
else
37+
./gradlew check --stacktrace -Ddownloader=MOCK
38+
fi

0 commit comments

Comments
 (0)