feat: Implement Distributed & Reactive CacheFlow Strategy #40
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 Validation | |
| permissions: | |
| checks: write | |
| contents: read | |
| pull-requests: read | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| pr-validation: | |
| runs-on: ubuntu-latest | |
| name: PR Validation | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 24 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 24 | |
| distribution: "temurin" | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run code quality checks | |
| run: | | |
| ./gradlew ktlintCheck | |
| # Detekt temporarily disabled - waiting for Gradle 9.1 + detekt 2.0.0-alpha.1 | |
| # ./gradlew detekt | |
| - name: Run tests | |
| run: ./gradlew test | |
| - name: Run security checks | |
| run: ./gradlew dependencyCheckAnalyze | |
| - name: Build project | |
| run: ./gradlew build | |
| - name: Check for TODO/FIXME comments | |
| run: | | |
| echo "Checking for TODO/FIXME comments..." | |
| if grep -r "TODO\|FIXME" src/ --exclude-dir=test; then | |
| echo "Found TODO/FIXME comments. Please address them before merging." | |
| exit 1 | |
| fi |