feat(quiz): generalized escape room mode and response validation #2242
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test OLAT-API functionalities | |
| on: | |
| push: | |
| branches: ['v3', 'v3*'] | |
| pull_request: | |
| branches: ['v3', 'v3*'] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-olat-api: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Check for changes | |
| id: filter | |
| uses: ./.github/actions/changed-paths | |
| with: | |
| pattern: '^(apps/olat-api/|packages/prisma/|packages/grading/|packages/util/|package\.json|pnpm-lock\.yaml|tsconfig\.json|\.github/workflows/test-olat-api\.yml|\.github/actions/changed-paths/)' | |
| - name: Set up Docker Buildx | |
| if: steps.filter.outputs.should_run == 'true' | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Define node version | |
| if: steps.filter.outputs.should_run == 'true' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: package.json | |
| - uses: pnpm/action-setup@v4 | |
| if: steps.filter.outputs.should_run == 'true' | |
| with: | |
| version: 11.5.0 | |
| run_install: true | |
| - name: Run tests using Docker | |
| if: steps.filter.outputs.should_run == 'true' | |
| run: | | |
| cd packages/prisma | |
| pnpm run build | |
| cd ../grading | |
| pnpm run build | |
| cd ../util | |
| pnpm run build | |
| cd ../../apps/olat-api | |
| pnpm run test |