2022-12-25 10:39:45 +08:00
|
|
|
name: Frontend Test
|
2022-08-24 21:12:08 +08:00
|
|
|
|
|
|
|
on:
|
2023-09-17 23:18:18 +08:00
|
|
|
push:
|
|
|
|
branches: [main]
|
2022-12-27 21:51:43 +08:00
|
|
|
pull_request:
|
2022-08-24 21:12:08 +08:00
|
|
|
branches:
|
|
|
|
- main
|
2023-01-01 22:01:16 +08:00
|
|
|
- "release/*.*.*"
|
2023-07-29 20:59:22 +08:00
|
|
|
paths:
|
|
|
|
- "web/**"
|
2022-08-24 21:12:08 +08:00
|
|
|
|
|
|
|
jobs:
|
2024-03-26 22:35:11 +08:00
|
|
|
static-checks:
|
2022-08-31 19:27:17 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-03 16:58:47 +08:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-08 09:55:18 +08:00
|
|
|
- uses: pnpm/action-setup@v2.4.0
|
2023-04-16 00:47:40 +08:00
|
|
|
with:
|
2023-06-15 22:35:41 +08:00
|
|
|
version: 8
|
2023-12-08 09:55:18 +08:00
|
|
|
- uses: actions/setup-node@v4
|
2022-08-31 19:27:17 +08:00
|
|
|
with:
|
2023-12-15 21:46:11 +08:00
|
|
|
node-version: "20"
|
2023-04-16 00:47:40 +08:00
|
|
|
cache: pnpm
|
|
|
|
cache-dependency-path: "web/pnpm-lock.yaml"
|
|
|
|
- run: pnpm install
|
2022-08-31 19:27:17 +08:00
|
|
|
working-directory: web
|
|
|
|
- name: Run eslint check
|
2023-04-16 00:47:40 +08:00
|
|
|
run: pnpm lint
|
2022-08-31 19:27:17 +08:00
|
|
|
working-directory: web
|
2024-03-26 22:35:11 +08:00
|
|
|
- name: Run type checks
|
2024-03-26 22:46:17 +08:00
|
|
|
run: pnpm type-check
|
2024-03-26 22:35:11 +08:00
|
|
|
working-directory: web
|
2022-08-31 19:27:17 +08:00
|
|
|
|
2022-08-31 20:21:56 +08:00
|
|
|
frontend-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-03 16:58:47 +08:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-08 09:55:18 +08:00
|
|
|
- uses: pnpm/action-setup@v2.4.0
|
2023-04-16 00:47:40 +08:00
|
|
|
with:
|
2023-06-15 22:35:41 +08:00
|
|
|
version: 8
|
2023-12-08 09:55:18 +08:00
|
|
|
- uses: actions/setup-node@v4
|
2022-08-31 20:21:56 +08:00
|
|
|
with:
|
2023-12-15 21:46:11 +08:00
|
|
|
node-version: "20"
|
2023-04-16 00:47:40 +08:00
|
|
|
cache: pnpm
|
|
|
|
cache-dependency-path: "web/pnpm-lock.yaml"
|
|
|
|
- run: pnpm install
|
2022-08-31 20:21:56 +08:00
|
|
|
working-directory: web
|
|
|
|
- name: Run frontend build
|
2023-04-16 00:47:40 +08:00
|
|
|
run: pnpm build
|
2022-08-31 20:21:56 +08:00
|
|
|
working-directory: web
|