Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add if-else statement to run tests against real website on schedule #516

Merged
merged 1 commit into from
Jan 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI

on:
schedule:
# once per day
- cron: 0 0 * * *
XiangRongLin marked this conversation as resolved.
Show resolved Hide resolved
push:
branches:
- dev
Expand All @@ -25,5 +28,11 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

# See gradle file for difference between downloaders
- name: Build and run Tests
run: ./gradlew check --stacktrace -Ddownloader=MOCK
run: |
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
./gradlew check --stacktrace -Ddownloader=REAL
else
./gradlew check --stacktrace -Ddownloader=MOCK
fi