2022-12-25 10:39:45 +08:00
|
|
|
name: Frontend Test
|
2022-08-24 21:12:08 +08:00
|
|
|
|
|
|
|
on:
|
2022-12-27 21:51:43 +08:00
|
|
|
pull_request:
|
2022-08-24 21:12:08 +08:00
|
|
|
branches:
|
|
|
|
- main
|
2023-01-01 22:01:16 +08:00
|
|
|
- "release/*.*.*"
|
2022-08-24 21:12:08 +08:00
|
|
|
|
|
|
|
jobs:
|
2022-08-31 19:27:17 +08:00
|
|
|
eslint-checks:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-19 14:51:28 +08:00
|
|
|
node-version: "18"
|
2022-08-31 19:27:17 +08:00
|
|
|
cache: yarn
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
- run: yarn
|
|
|
|
working-directory: web
|
|
|
|
- name: Run eslint check
|
|
|
|
run: yarn lint
|
|
|
|
working-directory: web
|
|
|
|
|
2022-08-31 20:21:56 +08:00
|
|
|
frontend-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-19 14:51:28 +08:00
|
|
|
node-version: "18"
|
2022-08-31 20:21:56 +08:00
|
|
|
cache: yarn
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
- run: yarn
|
|
|
|
working-directory: web
|
|
|
|
- name: Run frontend build
|
|
|
|
run: yarn build
|
|
|
|
working-directory: web
|