Skip to content

Update maven-test.yml #14

Update maven-test.yml

Update maven-test.yml #14

Workflow file for this run

name: Maven Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Install Chrome and Firefox
run: |
sudo apt install google-chrome-stable
sudo apt-get install firefox
- name: Build with Maven
run: mvn -B test --file pom.xml -Dchrome.additional.capabilities="{'goog:chromeOptions':{'args':['headless']}}"