From 36e503b216c9677a395a4f6c92bb318b8c65ea17 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 8 Jan 2020 07:09:00 +0100 Subject: [PATCH] Run fetcher tests on a weekly basis (#5807) --- .github/workflows/tests-fetchers.yml | 55 ++++++++++++++++++++++++++++ .github/workflows/tests.yml | 31 ---------------- 2 files changed, 55 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/tests-fetchers.yml diff --git a/.github/workflows/tests-fetchers.yml b/.github/workflows/tests-fetchers.yml new file mode 100644 index 00000000000..e98b1e3fdc9 --- /dev/null +++ b/.github/workflows/tests-fetchers.yml @@ -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" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4786f358e28..cc7bd04b539 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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