2022-04-23 03:41:04 +00:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
backend:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-04-29 01:17:03 +00:00
|
|
|
node-version: 18.x
|
2022-04-23 03:41:04 +00:00
|
|
|
cache: 'yarn'
|
|
|
|
cache-dependency-path: |
|
|
|
|
packages/backend/yarn.lock
|
2022-05-30 01:11:20 +00:00
|
|
|
- run: corepack enable
|
2022-04-23 03:41:04 +00:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn --cwd ./packages/backend lint
|
|
|
|
|
|
|
|
client:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-04-29 01:17:03 +00:00
|
|
|
node-version: 18.x
|
2022-04-23 03:41:04 +00:00
|
|
|
cache: 'yarn'
|
|
|
|
cache-dependency-path: |
|
|
|
|
packages/client/yarn.lock
|
2022-05-30 01:11:20 +00:00
|
|
|
- run: corepack enable
|
2022-04-23 03:41:04 +00:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn --cwd ./packages/client lint
|