Skip to content

Commit

Permalink
ci: Set Teacher, Student Build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
8954sood committed Aug 30, 2024
1 parent fc4684e commit f7199f4
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Android CI

on:
push:
branches: [ "develop", "main" ]
pull_request:
branches: [ "develop", "main" ]

jobs:
build:

env:
TITLE: ${{ github.event.pull_request.title }}
runs-on: ubuntu-latest

steps:
Expand All @@ -23,8 +22,21 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run spotless
- name: Run Student spotless
if: startsWith($TITLE}, '[Student]')
run: ./gradlew dodam-student:spotlessCheck

- name: Android Build with Gradle
- name: Android Student Build with Gradle
if: startsWith($TITLE}, '[Student]')
run: ./gradlew dodam-student:clean assembleRelease --parallel

- name: Run Teacher spotless
if: startsWith($TITLE}, '[Teacher]')
run: ./gradlew dodam-teacher-android:spotlessCheck

- name: Android Teacher Build with Gradle
if: startsWith($TITLE}, '[Teacher]')
run: ./gradlew dodam-teacher-android:clean assembleRelease --parallel



0 comments on commit f7199f4

Please sign in to comment.