Improve lint workflow

This commit is contained in:
ThatOneCalculator 2022-05-29 18:28:01 -07:00
parent f035817489
commit 6254a1e163

View file

@ -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