Skip to content

update mycore-classification dependency, 1.0 is now released #1957

update mycore-classification dependency, 1.0 is now released

update mycore-classification dependency, 1.0 is now released #1957

Workflow file for this run

name: test
on: [ push, pull_request ]
env:
MAVEN_OPTS: -Xmx1024M -Xss128M -XX:+CMSClassUnloadingEnabled
GECKODRIVER_VERSION: 0.27.0
BIBUTILS_VERSION: 6.10
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt
- name: Fetch Geckodriver cache
id: geckodriver-cache
uses: actions/cache@v2
with:
path: ~/geckodriver
key: ${{ env.GECKODRIVER_VERSION }}
- name: Fetch Geckodriver
if: steps.geckodriver-cache.outputs.cache-hit != 'true'
run: |
mkdir ~/geckodriver
curl -L https://github.com/mozilla/geckodriver/releases/download/v${GECKODRIVER_VERSION}/geckodriver-v${GECKODRIVER_VERSION}-linux64.tar.gz | \
tar -C ~/geckodriver/ -xzvf-
- name: Fetch Bibutils cache
id: bibutils-cache
uses: actions/cache@v2
with:
path: ~/bibutils
key: ${{ env.BIBUTILS_VERSION }}
- name: Fetch Bibutils
if: steps.bibutils-cache.outputs.cache-hit != 'true'
run: |
mkdir ~/bibutils
curl -L https://kumisystems.dl.sourceforge.net/project/bibutils/bibutils_${BIBUTILS_VERSION}_src.tgz | \
tar -C ~/bibutils --strip-components=1 -xzvf-
cd ~/bibutils
./configure
make -j2
- name: Set up test dependencies
run: |
# PPA by Mozilla for ESR releases
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt update
sudo apt install firefox-esr chromium-browser chromium-chromedriver dbus-x11
# Selenium wants to run non-ESR FF
sudo rm -rf /usr/lib/firefox/
sudo ln -s firefox-esr /usr/lib/firefox
sudo ln -s firefox-esr /usr/lib/firefox/firefox
firefox --version
~/geckodriver/geckodriver --version
echo "${HOME}/geckodriver" >> $GITHUB_PATH
echo "${HOME}/bibutils/bin" >> $GITHUB_PATH
- name: Restore Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- name: Build
run: |
export $(dbus-launch)
mkdir ~/tmp
export TMPDIR=~/tmp
export FIREFOX_BIN=$(which firefox-esr)
export SELENIUM_BROWSER=firefox
mvn -B -P!standard-with-extra-repos -Djetty clean install
mvn -P!standard-with-extra-repos -B javadoc:javadoc
- name: Upload logs on build failure
if: failure()
uses: actions/upload-artifact@v2
with:
name: test-results
path: |
./**/surefire-reports
./**/failsafe-reports
./**/screenshots
./**/*error*.log
./**/*test.log
- name: Save Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: save