mirror of
https://github.com/usememos/memos.git
synced 2024-11-14 18:59:53 +08:00
5b0a54bfb7
* chore: clean `package.json` * chore: update
38 lines
850 B
YAML
38 lines
850 B
YAML
name: Frontend Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- "release/*.*.*"
|
|
|
|
jobs:
|
|
eslint-checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "18"
|
|
cache: yarn
|
|
cache-dependency-path: "web/yarn.lock"
|
|
- run: yarn
|
|
working-directory: web
|
|
- name: Run eslint check
|
|
run: yarn lint
|
|
working-directory: web
|
|
|
|
frontend-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "18"
|
|
cache: yarn
|
|
cache-dependency-path: "web/yarn.lock"
|
|
- run: yarn
|
|
working-directory: web
|
|
- name: Run frontend build
|
|
run: yarn build
|
|
working-directory: web
|