ci(deps): bump actions/cache from 3 to 5 #61
This file contains hidden or 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: Code Quality | |
| on: | |
| push: | |
| branches: [ master, main, develop ] | |
| pull_request: | |
| branches: [ master, main, develop ] | |
| jobs: | |
| code-quality: | |
| name: Code Quality Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Shallow clones should be disabled for better analysis | |
| fetch-depth: 0 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Cache SonarCloud packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.sonar/cache | |
| key: ${{ runner.os }}-sonar | |
| restore-keys: ${{ runner.os }}-sonar | |
| - name: Install Xvfb | |
| run: sudo apt-get install -y xvfb | |
| - name: Run tests with coverage | |
| run: xvfb-run --auto-servernum mvn clean test jacoco:report | |
| - name: SonarCloud Scan | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| run: | | |
| mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.10.0.2594:sonar \ | |
| -Dsonar.projectKey=sukgu_shadow-automation-selenium \ | |
| -Dsonar.organization=sukgu \ | |
| -Dsonar.host.url=https://sonarcloud.io | |
| continue-on-error: true | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| files: ./target/site/jacoco/jacoco.xml | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: false | |
| spotbugs: | |
| name: SpotBugs Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Compile project | |
| run: mvn clean compile test-compile | |
| - name: Run SpotBugs | |
| run: mvn spotbugs:check | |
| continue-on-error: true | |
| - name: Upload SpotBugs report | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: spotbugs-report | |
| path: target/spotbugsXml.xml |