diff --git a/.github/workflows/buildMobileAndroid.yml b/.github/workflows/buildMobileAndroid.yml new file mode 100644 index 0000000000000000000000000000000000000000..0fc9765b48d49d301ef64e00d332e52d99522039 --- /dev/null +++ b/.github/workflows/buildMobileAndroid.yml @@ -0,0 +1,45 @@ +name: Mobile android app CI + +on: + pull_request: + types: [opened, synchronize] + branches: + - 'develop' + paths: + - 'composeApp/**' + - 'contract/**' + - 'modal_custom_dialog/**' + - 'wheel-picker-compose/**' + + push: + branches: + - 'develop' + paths: + - 'composeApp/**' + - 'contract/**' + - 'modal_custom_dialog/**' + - 'wheel-picker-compose/**' + + workflow_dispatch: + +jobs: + build-app: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: adopt + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Add params to local.properties + run: echo '${{ secrets.local_properties }}' > local.properties + + - name: Build and run tests + run: ./gradlew :composeApp:assembleDebug :composeApp:testDebugUnitTest --no-daemon diff --git a/.github/workflows/buildTablet.yml b/.github/workflows/buildTablet.yml new file mode 100644 index 0000000000000000000000000000000000000000..4f734e5065dd7a6f64a766eef864923105914473 --- /dev/null +++ b/.github/workflows/buildTablet.yml @@ -0,0 +1,44 @@ +name: Tablet app CI + +on: + pull_request: + types: [opened, synchronize] + branches: + - 'develop' + paths: + - 'tabletApp/**' + - 'contract/**' + + push: + branches: + - 'develop' + paths: + - 'tabletApp/**' + - 'contract/**' + + workflow_dispatch: + +jobs: + build-app: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: adopt + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Add params to local.properties + run: echo '${{ secrets.local_properties }}' > local.properties + + - name: Add google-services.json file + run: echo '${{ secrets.google_services }}' > tabletApp/google-services.json + + - name: Build and run tests + run: ./gradlew :tabletApp:assembleDebug :tabletApp:testDebugUnitTest --no-daemon diff --git a/.github/workflows/buildTv.yml b/.github/workflows/buildTv.yml new file mode 100644 index 0000000000000000000000000000000000000000..63ada9f586837ae64e1e359d380c81ea1cac7151 --- /dev/null +++ b/.github/workflows/buildTv.yml @@ -0,0 +1,39 @@ +name: Tv app CI + +on: + pull_request: + types: [opened, synchronize] + branches: + - 'develop' + paths: + - 'tvApp/**' + + push: + branches: + - 'develop' + paths: + - 'tvApp/**' + + workflow_dispatch: + +jobs: + build-app: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: adopt + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Add params to local.properties + run: echo '${{ secrets.local_properties }}' > local.properties + + - name: Build and run tests + run: ./gradlew :tvApp:assembleDebug :tvApp:testDebugUnitTest --no-daemon