Bump commons-io:commons-io from 2.16.1 to 2.18.0 #1060
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FWium-lite CI | |
on: [ push ] | |
jobs: | |
test-local: | |
runs-on: ubuntu-latest | |
env: | |
THREAD_COUNT: 2 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Cache Maven deps | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Compile, run checkstyle and unit tests | |
run: | | |
mvn test-compile surefire:test \ | |
--batch-mode --show-version | |
- name: Use custom Firefox browser impl | |
run: | | |
mvn verify --batch-mode \ | |
-Dskip.surefire.tests=true \ | |
-DcustomBrowserImpl=com.frameworkium.integration.CustomFirefoxImpl \ | |
-Dheadless=true \ | |
-Dmaximise=true \ | |
-Dit.test=DocumentationTest | |
- name: Test Groups using Firefox | |
run: | | |
mvn verify --batch-mode \ | |
-Dskip.surefire.tests=true \ | |
-Dbrowser=firefox \ | |
-Dheadless \ | |
-DreuseBrowser \ | |
-Dgroups=fw-bugs | |
- name: Run tests against local Chrome | |
run: | | |
mvn verify --batch-mode \ | |
-Dskip.surefire.tests=true \ | |
-Dthreads=${THREAD_COUNT} \ | |
-Dbrowser=chrome \ | |
-Dheadless \ | |
-DreuseBrowser | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: fwium-logs | |
path: logs/ | |
retention-days: 7 | |
- uses: codecov/codecov-action@v1 | |
test-chrome-grid: | |
runs-on: ubuntu-latest | |
container: | |
image: maven:3.9-eclipse-temurin-17 | |
env: | |
HUB_HOST: hub | |
THREAD_COUNT: 2 | |
services: | |
hub: | |
image: selenium/hub:4.13 | |
ports: | |
- 4442-4444:4442-4444 | |
chrome1: | |
image: selenium/node-chrome:4.13 | |
options: -v /dev/shm:/dev/shm | |
env: | |
SE_EVENT_BUS_PUBLISH_PORT: 4442 | |
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443 | |
SE_EVENT_BUS_HOST: hub | |
chrome2: | |
image: selenium/node-chrome:4.13 | |
options: -v /dev/shm:/dev/shm | |
env: | |
SE_EVENT_BUS_PUBLISH_PORT: 4442 | |
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443 | |
SE_EVENT_BUS_HOST: hub | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Maven deps | |
uses: actions/cache@v2 | |
with: | |
path: /root/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Run tests against Chrome grid | |
run: | | |
mvn verify --batch-mode \ | |
-Dskip.surefire.tests=true \ | |
-Dthreads=${THREAD_COUNT} \ | |
-Dbrowser=chrome \ | |
-Dheadless \ | |
-DreuseBrowser \ | |
-DgridURL=http://${HUB_HOST}:4444/ | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: fwium-logs | |
path: logs/ | |
retention-days: 7 | |
- uses: codecov/codecov-action@v1 | |
test-firefox-grid: | |
runs-on: ubuntu-latest | |
container: | |
image: maven:3.9-eclipse-temurin-17 | |
env: | |
HUB_HOST: hub | |
THREAD_COUNT: 2 | |
services: | |
hub: | |
image: selenium/hub:4.13 | |
ports: | |
- 4442-4444:4442-4444 | |
firefox1: | |
image: selenium/node-firefox:4.13 | |
options: -v /dev/shm:/dev/shm | |
env: | |
SE_EVENT_BUS_PUBLISH_PORT: 4442 | |
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443 | |
SE_EVENT_BUS_HOST: hub | |
firefox2: | |
image: selenium/node-firefox:4.13 | |
options: -v /dev/shm:/dev/shm | |
env: | |
SE_EVENT_BUS_PUBLISH_PORT: 4442 | |
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443 | |
SE_EVENT_BUS_HOST: hub | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Maven deps | |
uses: actions/cache@v2 | |
with: | |
path: /root/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Run using yaml FirefoxGrid config | |
run: | | |
mvn verify --batch-mode \ | |
-Dskip.surefire.tests=true \ | |
-Dthreads=${THREAD_COUNT} \ | |
-Dit.test=EnglishCountiesTest \ | |
-Dconfig=FirefoxGrid.yaml | |
- name: Run tests against Firefox grid | |
run: | | |
mvn verify --batch-mode \ | |
-Dskip.surefire.tests=true \ | |
-Dit.test=TheInternetExampleTests \ | |
-Dthreads=${THREAD_COUNT} \ | |
-Dbrowser=firefox \ | |
-Dheadless \ | |
-DreuseBrowser \ | |
-DgridURL=http://${HUB_HOST}:4444/ | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: fwium-logs | |
path: logs/ | |
retention-days: 7 | |
- uses: codecov/codecov-action@v1 | |
sonar: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Cache Sonar packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build and analyse | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: mvn -B test-compile surefire:test org.sonarsource.scanner.maven:sonar-maven-plugin:sonar |