Merge pull request #516 from XiangRongLin/schedule_ci_with_real
Add if-else statement to run tests against real website on schedule
This commit is contained in:
commit
beb705013c
1 changed files with 10 additions and 1 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -1,6 +1,9 @@
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
# once per day
|
||||||
|
- cron: 0 0 * * *
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
@ -25,5 +28,11 @@ jobs:
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
restore-keys: ${{ runner.os }}-gradle
|
||||||
|
|
||||||
|
# See gradle file for difference between downloaders
|
||||||
- name: Build and run Tests
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue