fix: issue #1081 Sonar S1132 Strings literals should be placed on the left side when checking for equality #114
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: PR Build | |
on: | |
push: | |
branches: | |
- '!master' | |
pull_request: | |
branches: | |
- master | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# We do one OS only to reduce resource utilization. To do macOS to this would be needed: | |
#os: [ubuntu-20.04, macOS-latest] | |
os: [ubuntu-latest] | |
java: [17] | |
fail-fast: false | |
max-parallel: 4 | |
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'oracle' | |
java-version: ${{ matrix.java }} | |
- name: Build, test and integration test | |
run: mvn verify --no-transfer-progress |