name: authentik-ci-web
on:
push:
branches:
- main
- next
- version-*
pull_request:
jobs:
lint-eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3.8.1
with:
node-version: "20"
cache: "npm"
cache-dependency-path: web/package-lock.json
- working-directory: web/
run: npm ci
- name: Generate API
run: make gen-client-ts
- name: Eslint
working-directory: web/
run: npm run lint
lint-build:
- name: TSC
run: npm run tsc
lint-prettier:
- name: prettier
run: npm run prettier-check
lint-lit-analyse:
run: |
npm ci
# lit-analyse doesn't understand path rewrites, so make it
# belive it's an actual module
cd node_modules/@goauthentik
ln -s ../../src/ web
- name: lit-analyse
run: npm run lit-analyse
ci-web-mark:
needs:
- lint-eslint
- lint-prettier
- lint-lit-analyse
- lint-build
- run: echo mark
build:
- ci-web-mark
- name: build
run: npm run build