ci: split validate from release build, drop duplicate runs #1
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: validate | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| paths: | |
| - '**/*.kt' | |
| - '**/*.kts' | |
| - '**/*.toml' | |
| - 'gradle/**' | |
| - 'gradlew' | |
| - '.github/workflows/validate.yml' | |
| pull_request: | |
| paths: | |
| - '**/*.kt' | |
| - '**/*.kts' | |
| - '**/*.toml' | |
| - 'gradle/**' | |
| - 'gradlew' | |
| - '.github/workflows/validate.yml' | |
| concurrency: | |
| group: validate-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| env: | |
| ASTER_UNSIGNED: '1' | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - uses: gradle/actions/setup-gradle@v4 | |
| - name: compile both flavors and run unit tests | |
| run: ./gradlew -Pfdroid compileFullDebugKotlin testFdroidDebugUnitTest testDebugUnitTest | |
| - name: upload test reports | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-reports | |
| path: '**/build/reports/tests/**' |