memos/.github/workflows/frontend-tests.yml

53 lines
1.2 KiB
YAML
Raw Normal View History

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]
pull_request:
2022-08-24 16:12:08 +03:00
branches:
- main
- "release/*.*.*"
2023-07-29 15:59:22 +03:00
paths:
- "web/**"
2022-08-24 16:12:08 +03:00
jobs:
eslint-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2.4.0
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: pnpm
cache-dependency-path: "web/pnpm-lock.yaml"
- run: pnpm install
working-directory: web
- run: pnpm type-gen
working-directory: web
- name: Run eslint check
run: pnpm lint
working-directory: web
frontend-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2.4.0
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: pnpm
cache-dependency-path: "web/pnpm-lock.yaml"
- run: pnpm install
working-directory: web
- run: pnpm type-gen
working-directory: web
- name: Run frontend build
run: pnpm build
working-directory: web