web/admin: fix code-based MFA toggle not working in wizard (#11854) #25470
This file contains 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: authentik-ci-web | |
on: | |
push: | |
branches: | |
- main | |
- next | |
- version-* | |
pull_request: | |
branches: | |
- main | |
- version-* | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
command: | |
- lint | |
- lint:lockfile | |
- tsc | |
- prettier-check | |
project: | |
- web | |
include: | |
- command: tsc | |
project: web | |
- command: lit-analyse | |
project: web | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ${{ matrix.project }}/package.json | |
cache: "npm" | |
cache-dependency-path: ${{ matrix.project }}/package-lock.json | |
- working-directory: ${{ matrix.project }}/ | |
run: | | |
npm ci | |
- name: Generate API | |
run: make gen-client-ts | |
- name: Lint | |
working-directory: ${{ matrix.project }}/ | |
run: npm run ${{ matrix.command }} | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: web/package.json | |
cache: "npm" | |
cache-dependency-path: web/package-lock.json | |
- working-directory: web/ | |
run: npm ci | |
- name: Generate API | |
run: make gen-client-ts | |
- name: build | |
working-directory: web/ | |
run: npm run build | |
ci-web-mark: | |
needs: | |
- build | |
- lint | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo mark | |
test: | |
needs: | |
- ci-web-mark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: web/package.json | |
cache: "npm" | |
cache-dependency-path: web/package-lock.json | |
- working-directory: web/ | |
run: npm ci | |
- name: Generate API | |
run: make gen-client-ts | |
- name: test | |
working-directory: web/ | |
run: npm run test || exit 0 |