name: authentik-ci-web
on:
push:
branches:
- master
- next
- version-*
pull_request:
jobs:
lint-eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.1.1
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: web/package-lock.json
- run: |
cd web
npm ci
- name: Generate API
run: make gen-client-web
- name: Eslint
run: |
npm run lint
lint-prettier:
- name: prettier
npm run prettier-check
lint-lit-analyse:
- name: lit-analyse
npm run lit-analyse
ci-web-mark:
needs:
- lint-eslint
- lint-prettier
- lint-lit-analyse
- run: echo mark
build:
- ci-web-mark
- name: build
npm run build