Skip to content

MCR-3157 Adapted MCRAccessKeyFilter for REST #8368

MCR-3157 Adapted MCRAccessKeyFilter for REST

MCR-3157 Adapted MCRAccessKeyFilter for REST #8368

Workflow file for this run

name: test
on: [ push, pull_request ]
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS
GECKODRIVER_VERSION: 0.34.0
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 21
distribution: temurin
cache: maven
- name: Setup Gecko driver
uses: browser-actions/setup-geckodriver@latest
with:
geckodriver-version: ${{ env.GECKODRIVER_VERSION }}
- name: Setup firefox
id: setup-firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: latest-esr
- name: Setup Chrome
id: setup-chrome
uses: browser-actions/setup-chrome@v1
with:
chrome-version: stable
- name: Setup Chromedriver
uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: ${{ steps.setup-chrome.outputs.chrome-version }}
- name: Set up test dependencies
run: |
sudo apt install dbus-x11
# Selenium wants to run non-ESR FF
sudo ln -sfn ${{ steps.setup-firefox.outputs.firefox-path }} /usr/bin/firefox
sudo ln -sfn ${{ steps.setup-firefox.outputs.firefox-path }} /usr/bin/firefox-esr
firefox --version
geckodriver --version
- name: Build
run: |
export $(dbus-launch)
mkdir ~/tmp
export TMPDIR=~/tmp
export FIREFOX_BIN=$(which firefox-esr)
export SELENIUM_BROWSER=firefox
mvn -B -Plocal-testing,!standard-with-extra-repos clean install -T1C -DreuseForks=true -DforkCount=1
mvn -P!standard-with-extra-repos -B javadoc:javadoc javadoc:test-javadoc -T1C
- name: Upload logs on build failure
if: failure() || cancelled()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
./**/surefire-reports
./**/failsafe-reports
./**/screenshots
./**/*error*.log
./**/*test.log
./**/*test.log
./**/jetty-*.out