Improve lint workflow
This commit is contained in:
parent
f035817489
commit
6254a1e163
1 changed files with 2 additions and 20 deletions
22
.github/workflows/lint.yml
vendored
22
.github/workflows/lint.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
backend:
|
workspaces:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -18,24 +18,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
cache-dependency-path: |
|
|
||||||
packages/backend/yarn.lock
|
|
||||||
- run: corepack enable
|
- run: corepack enable
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
- run: yarn --cwd ./packages/backend lint
|
- run: yarn workspaces * lint
|
||||||
|
|
||||||
client:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 18.x
|
|
||||||
cache: 'yarn'
|
|
||||||
cache-dependency-path: |
|
|
||||||
packages/client/yarn.lock
|
|
||||||
- run: corepack enable
|
|
||||||
- run: yarn install
|
|
||||||
- run: yarn --cwd ./packages/client lint
|
|
||||||
|
|
Loading…
Reference in a new issue