2022-05-09 19:22:41 +00:00
|
|
|
name: authentik-ci-website
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-06-03 17:40:09 +00:00
|
|
|
- main
|
2022-05-09 19:22:41 +00:00
|
|
|
- next
|
|
|
|
- version-*
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-06-03 17:40:09 +00:00
|
|
|
- main
|
2022-05-09 19:22:41 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-prettier:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-18 04:21:59 +00:00
|
|
|
- uses: actions/setup-node@v3.8.1
|
2022-05-09 19:22:41 +00:00
|
|
|
with:
|
2023-04-21 10:54:23 +00:00
|
|
|
node-version: "20"
|
|
|
|
cache: "npm"
|
2022-05-09 19:22:41 +00:00
|
|
|
cache-dependency-path: website/package-lock.json
|
|
|
|
- working-directory: website/
|
|
|
|
run: npm ci
|
|
|
|
- name: prettier
|
|
|
|
working-directory: website/
|
|
|
|
run: npm run prettier-check
|
2023-02-09 21:06:03 +00:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-18 04:21:59 +00:00
|
|
|
- uses: actions/setup-node@v3.8.1
|
2023-02-09 21:06:03 +00:00
|
|
|
with:
|
2023-04-21 10:54:23 +00:00
|
|
|
node-version: "20"
|
|
|
|
cache: "npm"
|
2023-02-09 21:06:03 +00:00
|
|
|
cache-dependency-path: website/package-lock.json
|
|
|
|
- working-directory: website/
|
|
|
|
run: npm ci
|
|
|
|
- name: test
|
|
|
|
working-directory: website/
|
|
|
|
run: npm test
|
2023-03-23 20:40:36 +00:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-13 15:20:44 +00:00
|
|
|
name: ${{ matrix.job }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
job:
|
|
|
|
- build
|
|
|
|
- build-docs-only
|
2023-03-23 20:40:36 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-18 04:21:59 +00:00
|
|
|
- uses: actions/setup-node@v3.8.1
|
2023-03-23 20:40:36 +00:00
|
|
|
with:
|
2023-04-21 10:54:23 +00:00
|
|
|
node-version: "20"
|
|
|
|
cache: "npm"
|
2023-03-23 20:40:36 +00:00
|
|
|
cache-dependency-path: website/package-lock.json
|
|
|
|
- working-directory: website/
|
|
|
|
run: npm ci
|
|
|
|
- name: build
|
|
|
|
working-directory: website/
|
2023-04-13 15:20:44 +00:00
|
|
|
run: npm run ${{ matrix.job }}
|
2022-05-12 20:54:29 +00:00
|
|
|
ci-website-mark:
|
2022-05-09 19:22:41 +00:00
|
|
|
needs:
|
|
|
|
- lint-prettier
|
2023-02-09 21:06:03 +00:00
|
|
|
- test
|
2023-03-23 20:40:36 +00:00
|
|
|
- build
|
2022-05-09 19:22:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- run: echo mark
|