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) { -
+
+ } diff --git a/ui/src/app/question/basequestion/multiple-choice.component.ts b/ui/src/app/question/basequestion/multiple-choice.component.ts index 9f51855da..81fab1bca 100644 --- a/ui/src/app/question/basequestion/multiple-choice.component.ts +++ b/ui/src/app/question/basequestion/multiple-choice.component.ts @@ -89,10 +89,10 @@ import { WeightedMultipleChoiceOptionEditorComponent } from './weighted-multiple }
- +
`, diff --git a/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts b/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts index b9f3d479d..8fbba80d4 100644 --- a/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts +++ b/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts @@ -46,9 +46,13 @@ import { FixedPrecisionValidatorDirective } from 'src/app/shared/validation/fixe [disabled]="lotteryOn" /> -
+
+ `, diff --git a/ui/src/app/question/examquestion/multichoice.component.ts b/ui/src/app/question/examquestion/multichoice.component.ts index c630650f1..657857caa 100644 --- a/ui/src/app/question/examquestion/multichoice.component.ts +++ b/ui/src/app/question/examquestion/multichoice.component.ts @@ -53,9 +53,13 @@ import { ExamSectionQuestionOption } from 'src/app/question/question.model'; /> } -
+
+ }
diff --git a/ui/src/app/question/examquestion/weighted-multichoice.component.ts b/ui/src/app/question/examquestion/weighted-multichoice.component.ts index 8b97616f5..9c18ccfad 100644 --- a/ui/src/app/question/examquestion/weighted-multichoice.component.ts +++ b/ui/src/app/question/examquestion/weighted-multichoice.component.ts @@ -77,13 +77,13 @@ import { ExamSectionQuestionOption } from 'src/app/question/question.model'; [disabled]="lotteryOn()" />
-
-
+ }
@@ -98,10 +98,10 @@ import { ExamSectionQuestionOption } from 'src/app/question/question.model';
- +
`,