Skip to content

557 introduce better string replacement #1092

557 introduce better string replacement

557 introduce better string replacement #1092

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Set resolution to 1920x1080
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Download Appium
uses: actions/checkout@v3
with:
node-version: 16
- name: Setup Appium
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Appium
run: |
npm install -g --force appium
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Install Google Chrome # Using shell script to install Google Chrome
run: |
chmod +x ./src/test/resources/scripts/InstallChrome.sh
./src/test/resources/scripts/InstallChrome.sh
- name: Build with Maven and Analyze with Sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dheadless -DrecordTests -Dtimeout=20
- name: Attach reports folder from build
if: ${{ failure() }}
continue-on-error: true
uses: actions/upload-artifact@v2
with:
name: ReportsFolder
path: ${{ github.workspace }}/reports