|
| 1 | +name: Main PR Checks |
| 2 | +run-name: Verify `${{ github.head_ref }}` before merge to `main` by @${{ github.actor }} |
| 3 | + |
| 4 | +on: |
| 5 | + pull_request: |
| 6 | + types: |
| 7 | + - opened # initially opened |
| 8 | + - reopened # closed then opened again |
| 9 | + - synchronize # any changes pushed |
| 10 | + branches: |
| 11 | + - main |
| 12 | + paths-ignore: # Only run checks on changes to code |
| 13 | + - "**/docs/*" |
| 14 | + - "**/README.md" |
| 15 | + |
| 16 | +jobs: |
| 17 | + build-app-android: |
| 18 | + if: github.event.pull_request.draft == false |
| 19 | + runs-on: ubuntu-22.04 |
| 20 | + steps: |
| 21 | + - name: Setup |
| 22 | + uses: Pointyware/.github/.github/actions/checkout-java-gradle@b70bbae19637171d6cf9311f06a59f1c15e2598b |
| 23 | + - name: Build Android |
| 24 | + run: ./gradlew :assertions:assembleDebug :assertions:assembleRelease -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
| 25 | + - name: Android Debug Unit Tests |
| 26 | + run: ./gradlew :assertions:testDebugUnitTest -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
| 27 | + |
| 28 | + build-app-ios: |
| 29 | + if: github.event.pull_request.draft == false && false |
| 30 | + runs-on: macos-14 |
| 31 | + steps: |
| 32 | + - name: Setup |
| 33 | + uses: Pointyware/.github/.github/actions/checkout-java-gradle@b70bbae19637171d6cf9311f06a59f1c15e2598b |
| 34 | + - name: Build iOS |
| 35 | + run: ./gradlew :assertions:iosX64Binaries -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
| 36 | + - name: Test iOS |
| 37 | + run: ./gradlew :assertions:iosX64Test -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
| 38 | + |
| 39 | + build-app-desktop: |
| 40 | + if: github.event.pull_request.draft == false |
| 41 | + runs-on: ubuntu-22.04 |
| 42 | + steps: |
| 43 | + - name: Setup |
| 44 | + uses: Pointyware/.github/.github/actions/checkout-java-gradle@b70bbae19637171d6cf9311f06a59f1c15e2598b |
| 45 | + - name: Build Desktop |
| 46 | + run: ./gradlew :assertions:assembleJvm -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
| 47 | + - name: Test Desktop |
| 48 | + run: ./gradlew :assertions:jvmTest -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
| 49 | + |
| 50 | + build-app-browser: |
| 51 | + if: github.event.pull_request.draft == false && false |
| 52 | + runs-on: ubuntu-22.04 |
| 53 | + steps: |
| 54 | + - name: Setup |
| 55 | + uses: Pointyware/.github/.github/actions/checkout-java-gradle@b70bbae19637171d6cf9311f06a59f1c15e2598b |
| 56 | + - name: Build Browser |
| 57 | + run: ./gradlew :assertions:assembleBrowser -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
| 58 | + - name: Test Browser |
| 59 | + run: ./gradlew :assertions:jsTest -Pgithub.user=${{ secrets.BUILD_USER }} -Pgithub.token=${{ secrets.BUILD_TOKEN }} |
0 commit comments