Merge pull request #7 from BTreeMap/copilot/update-icon-to-new-design #32
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: CI - Tests | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit_tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for version calculation | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: gradle | |
| - name: Run unit tests | |
| run: ./gradlew --no-daemon testProdDebugUnitTest | |
| - name: Upload test reports | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-test-reports | |
| path: app/build/reports/tests/ | |
| retention-days: 7 | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for version calculation | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: gradle | |
| - name: Run lint | |
| run: ./gradlew --no-daemon lintProdDebug | |
| - name: Upload lint reports | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lint-reports | |
| path: app/build/reports/lint-results*.html | |
| retention-days: 7 | |
| integration_tests: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for version calculation | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: gradle | |
| - name: Start services | |
| working-directory: tests | |
| run: docker compose up -d --wait | |
| - name: Wait for services to be healthy | |
| run: | | |
| echo "Waiting for services to be healthy..." | |
| sleep 10 | |
| - name: Run integration tests | |
| run: | | |
| echo "Integration tests would run here" | |
| echo "Note: Android instrumented tests require an emulator or device" | |
| echo "For now, this job verifies Docker services start correctly" | |
| - name: Shutdown services | |
| if: always() | |
| working-directory: tests | |
| run: docker compose down -v |