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