e76c14f9e0
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
88 lines
1.9 KiB
YAML
88 lines
1.9 KiB
YAML
name: authentik-ci-web
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- next
|
|
- version-*
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint-eslint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
cache: 'npm'
|
|
cache-dependency-path: web/package-lock.json
|
|
- run: |
|
|
cd web
|
|
npm install
|
|
- name: Generate API
|
|
run: make gen-web
|
|
- name: Eslint
|
|
run: |
|
|
cd web
|
|
npm run lint
|
|
lint-prettier:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
cache: 'npm'
|
|
cache-dependency-path: web/package-lock.json
|
|
- run: |
|
|
cd web
|
|
npm install
|
|
- name: Generate API
|
|
run: make gen-web
|
|
- name: prettier
|
|
run: |
|
|
cd web
|
|
npm run prettier-check
|
|
lint-lit-analyse:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
cache: 'npm'
|
|
cache-dependency-path: web/package-lock.json
|
|
- run: |
|
|
cd web
|
|
npm install
|
|
- name: Generate API
|
|
run: make gen-web
|
|
- name: prettier
|
|
run: |
|
|
cd web
|
|
npm run lit-analyse
|
|
build:
|
|
needs:
|
|
- lint-eslint
|
|
- lint-prettier
|
|
- lint-lit-analyse
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
cache: 'npm'
|
|
cache-dependency-path: web/package-lock.json
|
|
- run: |
|
|
cd web
|
|
npm install
|
|
- name: Generate API
|
|
run: make gen-web
|
|
- name: build
|
|
run: |
|
|
cd web
|
|
npm run build
|