Skip to content

Merge pull request #84 from simplelocalize/write-nested-issue #340

Merge pull request #84 from simplelocalize/write-nested-issue

Merge pull request #84 from simplelocalize/write-nested-issue #340

Workflow file for this run

name: Run Tests
on:
pull_request:
push:
branches:
- master
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
run_tests:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Set up JDK 11"
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "Test with Maven"
run: mvn --settings .maven.xml clean install -B -V
- name: "SonarCloud Analyze"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn clean -B verify -Ptest org.sonarsource.scanner.maven:sonar-maven-plugin:sonar