Skip to content

[Core] Set Teacher, Student Build CI #259

[Core] Set Teacher, Student Build CI

[Core] Set Teacher, Student Build CI #259

Workflow file for this run

name: Android CI
on:
pull_request:
branches: [ "develop", "main" ]
jobs:
build:
env:
TITLE: ${{ github.event.pull_request.title }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Student spotless
if: startsWith($TITLE}, '[Student]')

Check failure on line 26 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Android CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 26, Col: 11): Unexpected symbol: '$TITLE}'. Located at position 12 within expression: startsWith($TITLE}, '[Student]') .github/workflows/ci.yml (Line: 30, Col: 11): Unexpected symbol: '$TITLE}'. Located at position 12 within expression: startsWith($TITLE}, '[Student]')
run: ./gradlew dodam-student:spotlessCheck
- 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