Skip to content

refactor: quiz logic and add question edit dialog #295

refactor: quiz logic and add question edit dialog

refactor: quiz logic and add question edit dialog #295

Workflow file for this run

name: CI
permissions:
contents: read
on:
push:
branches: ["main"]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: Setup build cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: npm ci
- name: Check commit name
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Format check
run: npm run format:check
if: always()
- name: Build
run: npm run build
env:
NEXT_PUBLIC_API_URL: http://localhost:8000
if: always()
- name: Lint
run: npm run lint
if: always()