Skip to content

Commit

Permalink
Merge pull request #516 from XiangRongLin/schedule_ci_with_real
Browse files Browse the repository at this point in the history
Add if-else statement to run tests against real website on schedule
  • Loading branch information
TobiGr authored Jan 16, 2021
2 parents b9ba956 + 7a6d930 commit beb7050
Showing 1 changed file with 10 additions and 1 deletion.
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 * * *
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

0 comments on commit beb7050

Please sign in to comment.