mirror of
https://github.com/usememos/memos.git
synced 2024-11-15 19:26:54 +08:00
74e0f5429a
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v3.0.0...v4.0.0) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: Frontend Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- "release/*.*.*"
|
|
paths:
|
|
- "web/**"
|
|
|
|
jobs:
|
|
static-checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4.0.0
|
|
with:
|
|
version: 9
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: pnpm
|
|
cache-dependency-path: "web/pnpm-lock.yaml"
|
|
- run: pnpm install
|
|
working-directory: web
|
|
- name: Run eslint check
|
|
run: pnpm lint
|
|
working-directory: web
|
|
- name: Run type checks
|
|
run: pnpm type-check
|
|
working-directory: web
|
|
|
|
frontend-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4.0.0
|
|
with:
|
|
version: 9
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: pnpm
|
|
cache-dependency-path: "web/pnpm-lock.yaml"
|
|
- run: pnpm install
|
|
working-directory: web
|
|
- name: Run frontend build
|
|
run: pnpm build
|
|
working-directory: web
|