add s3_tier storage policy with renamed disks #1052
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: PR Checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| jobs: | |
| # Run tests without waiting for linting - fast feedback | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
| - name: Run tests | |
| # Exclude bulk-writer modules - require cassandra-analytics SNAPSHOTs from local Maven | |
| run: ./gradlew test koverXmlReport --no-daemon -x :spark:bulk-writer-sidecar:compileJava -x :spark:bulk-writer-sidecar:test -x :spark:bulk-writer-s3:compileJava -x :spark:bulk-writer-s3:test | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-results | |
| path: | | |
| **/build/reports/tests/test/ | |
| **/build/test-results/test/ | |
| retention-days: 30 | |
| - name: Publish Test Results | |
| uses: dorny/test-reporter@v2 | |
| if: always() | |
| with: | |
| name: Test Results | |
| path: '**/build/test-results/test/*.xml' | |
| reporter: java-junit | |
| fail-on-error: false | |
| - name: Kover coverage report | |
| uses: mi-kas/kover-report@v1 | |
| if: always() | |
| with: | |
| path: build/reports/kover/report.xml | |
| title: Code Coverage | |
| update-comment: true | |
| min-coverage-overall: 80 | |
| min-coverage-changed-files: 80 | |
| - name: Upload coverage reports | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-reports | |
| path: | | |
| build/reports/kover/ | |
| **/build/reports/jacoco/ | |
| retention-days: 30 | |
| # Run linting and static analysis in parallel with tests | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
| - name: Run ktlint | |
| run: ./gradlew ktlintCheck --no-daemon | |
| - name: Run detekt | |
| run: ./gradlew detekt --no-daemon | |
| - name: Upload detekt reports | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: detekt-reports | |
| path: | | |
| build/reports/detekt/ | |
| retention-days: 30 |