2022-12-25 05:39:45 +03:00
|
|
|
name: Frontend Test
|
2022-08-24 16:12:08 +03:00
|
|
|
|
|
|
|
on:
|
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:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-15 19:47:40 +03:00
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
|
|
with:
|
2023-06-15 17:35:41 +03:00
|
|
|
version: 8
|
2022-08-31 14:27:17 +03:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
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
|
|
|
|
- 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:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-15 19:47:40 +03:00
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
|
|
with:
|
2023-06-15 17:35:41 +03:00
|
|
|
version: 8
|
2022-08-31 15:21:56 +03:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
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
|
|
|
|
- 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
|