Skip to content

Commit

Permalink
Run fetcher tests on a weekly basis (#5807)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored Jan 8, 2020
1 parent edc32c9 commit 36e503b
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 31 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/tests-fetchers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Fetcher Tests

on:
push:
branches:
- master
paths:
- 'src/main/java/org/jabref/logic/importer/fetcher/**'
- 'src/test/java/org/jabref/logic/importer/fetcher/**'
- '.github/workflows/tests-fetchers.yml'
- 'build.gradle'
pull_request:
paths:
- 'src/main/java/org/jabref/logic/**'
- 'src/test/java/org/jabref/logic/**'
- 'src/main/java/org/jabref/model/**'
- 'src/test/java/org/jabref/model/**'
- '.github/workflows/tests-fetchers.yml'
- 'build.gradle'
schedule:
# run on each Wednesday
- cron: '2 3 * * 3'

jobs:
fetchertests:
name: Fetcher tests
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v1
with:
depth: 1
submodules: false
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 13
- uses: actions/cache@v1
name: Restore gradle chache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Run fetcher tests
run: ./gradlew fetcherTest
env:
CI: "true"
31 changes: 0 additions & 31 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,37 +133,6 @@ jobs:
env:
CI: "true"
DBMS: "mysql"
fetchertests:
name: Fetcher tests
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v1
with:
depth: 1
submodules: false
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 13
- uses: actions/cache@v1
name: Restore gradle chache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Run fetcher tests
run: ./gradlew fetcherTest
env:
CI: "true"
guitests:
name: GUI tests
runs-on: ubuntu-latest
Expand Down

0 comments on commit 36e503b

Please sign in to comment.