2021-08-30 18:21:15 +00:00
|
|
|
name: authentik-ci-web
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-09-03 08:53:39 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- next
|
|
|
|
- version-*
|
|
|
|
pull_request:
|
2021-09-07 08:06:30 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2021-08-30 18:21:15 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-eslint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-02 08:56:53 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-12 07:07:09 +00:00
|
|
|
- uses: actions/setup-node@v3.1.1
|
2021-08-30 18:21:15 +00:00
|
|
|
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:
|
2022-03-02 08:56:53 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-12 07:07:09 +00:00
|
|
|
- uses: actions/setup-node@v3.1.1
|
2021-08-30 18:21:15 +00:00
|
|
|
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:
|
2022-03-02 08:56:53 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-12 07:07:09 +00:00
|
|
|
- uses: actions/setup-node@v3.1.1
|
2021-08-30 18:21:15 +00:00
|
|
|
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
|
2021-09-28 07:39:21 +00:00
|
|
|
- name: lit-analyse
|
2021-08-30 18:21:15 +00:00
|
|
|
run: |
|
|
|
|
cd web
|
|
|
|
npm run lit-analyse
|
2021-12-08 20:00:58 +00:00
|
|
|
ci-web-mark:
|
2021-08-30 18:21:15 +00:00
|
|
|
needs:
|
|
|
|
- lint-eslint
|
|
|
|
- lint-prettier
|
|
|
|
- lint-lit-analyse
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-08 20:00:58 +00:00
|
|
|
steps:
|
|
|
|
- run: echo mark
|
|
|
|
build:
|
|
|
|
needs:
|
|
|
|
- ci-web-mark
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-30 18:21:15 +00:00
|
|
|
steps:
|
2022-03-02 08:56:53 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-12 07:07:09 +00:00
|
|
|
- uses: actions/setup-node@v3.1.1
|
2021-08-30 18:21:15 +00:00
|
|
|
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
|