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-01-06 08:49:09 +00:00
|
|
|
- uses: actions/setup-node@v3.6.0
|
2022-05-09 19:22:41 +00:00
|
|
|
with:
|
2023-02-09 21:06:03 +00:00
|
|
|
node-version: '18'
|
2022-05-09 19:22:41 +00:00
|
|
|
cache: 'npm'
|
|
|
|
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
|
|
|
|
- uses: actions/setup-node@v3.6.0
|
|
|
|
with:
|
|
|
|
node-version: '18'
|
|
|
|
cache: 'npm'
|
|
|
|
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
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3.6.0
|
|
|
|
with:
|
|
|
|
node-version: '18'
|
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: website/package-lock.json
|
|
|
|
- working-directory: website/
|
|
|
|
run: npm ci
|
|
|
|
- name: build
|
|
|
|
working-directory: website/
|
|
|
|
run: npm run build
|
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
|