diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ca000522..5ed7034d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,51 +7,55 @@ name: Build on: [push] jobs: - build: - runs-on: ubuntu-latest - - services: - postgres: - image: postgres - env: - POSTGRES_DB: exam_test - POSTGRES_USER: exam - POSTGRES_PASSWORD: exam - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: 21 - distribution: temurin - - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version: 20.x - - - name: Check REUSE compliance - uses: fsfe/reuse-action@v4 - - - name: Build UI - run: | - rm -rf node_modules - npm i - npm run check-format - npm run check-lint - npm run build - - - name: Build backend and run tests - run: | - sed -i 's/\/var\/log\/exam/logs/g' $GITHUB_WORKSPACE/conf/logback.xml - sbt test + build: + runs-on: ubuntu-latest + + services: + postgres: + image: postgres + env: + POSTGRES_DB: exam_test + POSTGRES_USER: exam + POSTGRES_PASSWORD: exam + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: temurin + cache: sbt + + - name: Set up SBT + uses: sbt/setup-sbt@v1 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Check REUSE compliance + uses: fsfe/reuse-action@v4 + + - name: Build UI + run: | + rm -rf node_modules + npm i + npm run check-format + npm run check-lint + npm run build + + - name: Build backend and run tests + run: | + sed -i 's/\/var\/log\/exam/logs/g' $GITHUB_WORKSPACE/conf/logback.xml + sbt test diff --git a/ui/src/app/question/basequestion/multiple-choice-option.component.ts b/ui/src/app/question/basequestion/multiple-choice-option.component.ts index ac6816824..9e71fa29a 100644 --- a/ui/src/app/question/basequestion/multiple-choice-option.component.ts +++ b/ui/src/app/question/basequestion/multiple-choice-option.component.ts @@ -45,9 +45,9 @@ import { QuestionService } from 'src/app/question/question.service'; @if (allowRemoval) { -