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
|
2023-11-03 14:46:00 +00:00
|
|
|
- version-*
|
2022-05-09 19:22:41 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-prettier:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 04:42:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-24 09:44:27 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2022-05-09 19:22:41 +00:00
|
|
|
with:
|
2023-09-20 10:28:47 +00:00
|
|
|
node-version: "20"
|
2023-04-21 10:54:23 +00:00
|
|
|
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:
|
2023-09-05 04:42:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-24 09:44:27 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-02-09 21:06:03 +00:00
|
|
|
with:
|
2023-09-20 10:28:47 +00:00
|
|
|
node-version: "20"
|
2023-04-21 10:54:23 +00:00
|
|
|
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:
|
2023-09-05 04:42:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-24 09:44:27 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-03-23 20:40:36 +00:00
|
|
|
with:
|
2023-09-20 10:28:47 +00:00
|
|
|
node-version: "20"
|
2023-04-21 10:54:23 +00:00
|
|
|
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
|